diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-09 01:51:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-09 01:51:43 +0000 |
commit | a34ec2290fa441d312ac33a61e6ec6029259bdef (patch) | |
tree | 94840e08c17e355c5c7dd01f15e31e5b5efa570e /include/llvm/CodeGen/MachineModuleInfo.h | |
parent | 23071ce80b86accb8a0870da7925531cb7063d53 (diff) |
strength reduce MMI::MappedLabel to MMI::isLabelDeleted,
and add a FIXME about how we are eventually going to zap this
lookup table once mc world domination is complete.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineModuleInfo.h')
-rw-r--r-- | include/llvm/CodeGen/MachineModuleInfo.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h index 313f910f8f..fff8e83354 100644 --- a/include/llvm/CodeGen/MachineModuleInfo.h +++ b/include/llvm/CodeGen/MachineModuleInfo.h @@ -222,13 +222,14 @@ public: LabelIDList[LabelID - 1] = 0; } - /// MappedLabel - Find out the label's final ID. Zero indicates deletion. - /// ID != Mapped ID indicates that the label was folded into another label. - unsigned MappedLabel(unsigned LabelID) const { + /// isLabelDeleted - Return true if the label was deleted. + /// FIXME: This should eventually be eliminated and use the 'is emitted' bit + /// on MCSymbol. + bool isLabelDeleted(unsigned LabelID) const { assert(LabelID <= LabelIDList.size() && "Debug label ID out of range."); - return LabelID ? LabelIDList[LabelID - 1] : 0; + return LabelID == 0 || LabelIDList[LabelID - 1] == 0; } - + /// getFrameMoves - Returns a reference to a list of moves done in the current /// function's prologue. Used to construct frame maps for debug and exception /// handling comsumers. |