mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-19 19:31:50 +00:00
Simplify code. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185689 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
00d9fe2de7
commit
b6566aee30
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user