[LLVMdev] llc and debug information
Devang Patel
devang.patel at gmail.com
Wed Sep 16 14:29:29 PDT 2009
On Wed, Sep 16, 2009 at 1:34 PM, Nick Jalbert <jalbert at eecs.berkeley.edu> wrote:
> Hi all,
> I'm having an issue with debug information and llc. A test program:
> #include <iostream>
> using namespace std;
> void foo() {
> cout << "My return address is " << __builtin_return_address(0) <<
> endl << flush;
> }
> int main(int argc, char *argv[]) {
> foo();
> return 0;
> }
>
> When I compile my test program to LLVM bytecode, and then use llc to take
> the bytecode to assembly, llc appears to strip the debugging information
> along the way:
>> llvm-g++ -g -c -emit-llvm test.cpp
>> llc test.o
try -O0 in llc command line.
-
Devang
More information about the llvm-dev
mailing list