diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-03-31 03:34:40 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-03-31 03:34:40 +0000 |
| commit | 0b44e49f000a4da6b9948bdaa923b48911d2f47a (patch) | |
| tree | b9af4814e3f7a7b952fa656e18144b5dbb3457db /lib/CodeGen/SelectionDAG/FastISel.cpp | |
| parent | 8eb9c31ca2a86852aaa8481135735f034dbd861c (diff) | |
| download | external_llvm-0b44e49f000a4da6b9948bdaa923b48911d2f47a.zip external_llvm-0b44e49f000a4da6b9948bdaa923b48911d2f47a.tar.gz external_llvm-0b44e49f000a4da6b9948bdaa923b48911d2f47a.tar.bz2 | |
add new apis for getting/setting !dbg metadata on
instructions. In addition to being a convenience,
they are faster than the old apis, particularly when
not going from an MDKindID like people should be
doing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/FastISel.cpp')
| -rw-r--r-- | lib/CodeGen/SelectionDAG/FastISel.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index 3fc30ff..e4e9ef4 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -340,10 +340,9 @@ bool FastISel::SelectCall(User *I) { StaticAllocaMap.find(AI); if (SI == StaticAllocaMap.end()) break; // VLAs. int FI = SI->second; - if (MMI) { - if (MDNode *Dbg = DI->getMetadata("dbg")) - MMI->setVariableDbgInfo(DI->getVariable(), FI, Dbg); - } + if (MDNode *Dbg = DI->getDbgMetadata()) + MMI->setVariableDbgInfo(DI->getVariable(), FI, Dbg); + // Building the map above is target independent. Generating DBG_VALUE // inline is target dependent; do this now. (void)TargetSelectInstruction(cast<Instruction>(I)); |
