私はLLVMの初心者です。
指示にメタデータを追加しようとしています。LLVM-Source Level Debuggingの次のコードを回避しようとしました。
if (MDNode *N = I->getMetadata("dbg")) { // Here I is an LLVM instruction
DILocation Loc(N); // DILocation is in DebugInfo.h
unsigned Line = Loc.getLineNumber();
StringRef File = Loc.getFilename();
StringRef Dir = Loc.getDirectory();
}
I
inのデータ型は何I->getMetadata("dbg")
ですか? どのように定義すればよいI
ですか?
ありがとうございました :)