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 | 009de335acea261a3b4f5b46e83e53586b46d92e (patch) | |
| tree | 4dce3af52d45d9f1c4547f8b3df167f21aac1414 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
| parent | cef15829234e3fb37c88a660888816c937ffe0e7 (diff) | |
| download | bcm5719-llvm-009de335acea261a3b4f5b46e83e53586b46d92e.tar.gz bcm5719-llvm-009de335acea261a3b4f5b46e83e53586b46d92e.zip | |
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.
llvm-svn: 99982
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index 3fc30ff9088..e4e9ef405f6 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/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)); |

