Displaying 1 result from an estimated 1 matches for "xcatchingx_all".
2012 Jan 10
2
[LLVMdev] llc -march=cpp is broken?
...or:
LLVM ERROR: Invalid instruction
Replacing C++ with trivial hello world makes it work.
rev.147747
Yuri
--- example (please save as .sh file) ---
#!/bin/sh
cat >f.C <<_END_
extern void xthrowingx();
extern void xcatchingx_char(char c);
extern void xcatchingx_int(int i);
extern void xcatchingx_all();
void f() {
try {
xthrowingx();
} catch (char c) {
xcatchingx_char(c);
} catch (int i) {
xcatchingx_int(i);
} catch (...) {
xcatchingx_all();
}
}
_END_
clang++ -emit-llvm -c f.C -o f.bc
llc -march=cpp f.bc