Displaying 2 results from an estimated 2 matches for "filedirectoryname".
2014 Jan 23
2
[LLVMdev] How to read v3.3 dbg metadata using v3.4 LLVM
...tached is
the bitcode file used as an example in this mail. It was complied with
clang v3.3 -g -O0.
Thanks,
James
[0]
llvm::LLVMContext llvmContext;
unsigned dbgKind = llvmContext.getMDKindID("dbg");
if (MDNode *N = instruction.getMetadata(dbgKind)){
DILocation location(N);
fileDirectoryName = location.getDirectory();
fileName = location.getFilename();
lineNumber = location.getLineNumber();
columnNumber = location.getColumnNumber();
}
[1]
int main(int argc, char **argv){
return 0;
}
[2]
define i32 @main(i32 %argc, i8** %argv) #0 {
entry:
%retval = alloca i32...
2014 Jan 24
2
[LLVMdev] How to read v3.3 dbg metadata using v3.4 LLVM
...t;> James
>>
>> [0]
>>
>> llvm::LLVMContext llvmContext;
>>
>> unsigned dbgKind = llvmContext.getMDKindID("dbg");
>>
>> if (MDNode *N = instruction.getMetadata(dbgKind)){
>>
>> DILocation location(N);
>>
>> fileDirectoryName = location.getDirectory();
>>
>> fileName = location.getFilename();
>>
>> lineNumber = location.getLineNumber();
>>
>> columnNumber = location.getColumnNumber();
>>
>> }
>> [1]
>>
>> int main(int argc, char **argv){
>&...