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/AsmPrinter/DwarfDebug.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/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 00a98fba0b4..2f1a063924e 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2014,7 +2014,8 @@ void DwarfDebug::collectVariableInfo() { // FIXME : Lift this restriction. if (MInsn->getNumOperands() != 3) continue; - DIVariable DV((MDNode*)(MInsn->getOperand(MInsn->getNumOperands() - 1).getMetadata())); + DIVariable DV((MDNode*)(MInsn->getOperand(MInsn->getNumOperands() + - 1).getMetadata())); if (DV.getTag() == dwarf::DW_TAG_arg_variable) { // FIXME Handle inlined subroutine arguments. DbgVariable *ArgVar = new DbgVariable(DV, MInsn, NULL); |