diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-07-05 10:20:57 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-07-05 10:20:57 +0000 |
commit | 5dbec7d961ce26cf10764f8bdc24232b726a5907 (patch) | |
tree | 0150114413652e4ceb404b588e6673bba138c6f0 /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | |
parent | 606f3fbc2b295dce7462a511674e6c8d4add8040 (diff) | |
download | bcm5719-llvm-5dbec7d961ce26cf10764f8bdc24232b726a5907.tar.gz bcm5719-llvm-5dbec7d961ce26cf10764f8bdc24232b726a5907.zip |
Simplify code. No functionality change.
llvm-svn: 185689
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 432c39c0ec7..4541f83021d 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -156,7 +156,7 @@ public: /// getDIE - Returns the debug information entry map slot for the /// specified debug variable. - DIE *getDIE(const MDNode *N) { return MDNodeToDieMap.lookup(N); } + DIE *getDIE(const MDNode *N) const { return MDNodeToDieMap.lookup(N); } DIEBlock *getDIEBlock() { return new (DIEValueAllocator) DIEBlock(); @@ -169,12 +169,8 @@ public: /// getDIEEntry - Returns the debug information entry for the specified /// debug variable. - DIEEntry *getDIEEntry(const MDNode *N) { - DenseMap<const MDNode *, DIEEntry *>::iterator I = - MDNodeToDIEEntryMap.find(N); - if (I == MDNodeToDIEEntryMap.end()) - return NULL; - return I->second; + DIEEntry *getDIEEntry(const MDNode *N) const { + return MDNodeToDIEEntryMap.lookup(N); } /// insertDIEEntry - Insert debug information entry into the map. |