I am currently playing with clang -O4.  I am compiling a file with a main() that returns 0, nothing else.<div><br></div><div>The commands executed are as follows:<br><div><br></div><div>clang++ -o main.o -c -std=c++11 -Werror -Weverything -O4 main.cpp</div>
<div>llvm-ld -o main main.o</div></div><div><br></div><div>This generates a .bc file and a bash script to jit it.  If I add -native to the linker I get the following errors:</div><div><br></div><div><div>main.s:5:Unknown pseudo-op: .cfi_startproc</div>
<div>main.s:9:Unknown pseudo-op: .cfi_endproc</div></div><div><br></div><div>Is there any way to generate a native image while using -O4?  I can't seem to figure this out.</div><div><br></div><div>Thanks!</div>