diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-10-05 23:26:10 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-10-05 23:26:10 +0000 |
commit | dde44f95fa9b4dc44ecf3ad273e60dd9326c5d35 (patch) | |
tree | 927d14033ce5e8943ee7f8721856152e5c6534cf | |
parent | b6eb065ffca5b246150218bef5135facff0a8458 (diff) | |
download | bcm5719-llvm-dde44f95fa9b4dc44ecf3ad273e60dd9326c5d35.tar.gz bcm5719-llvm-dde44f95fa9b4dc44ecf3ad273e60dd9326c5d35.zip |
Add accessor method to check if the landing pad symbol has call site information.
llvm-svn: 141244
-rw-r--r-- | llvm/include/llvm/CodeGen/MachineModuleInfo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineModuleInfo.h b/llvm/include/llvm/CodeGen/MachineModuleInfo.h index a09a71400dd..2bf7f1788f8 100644 --- a/llvm/include/llvm/CodeGen/MachineModuleInfo.h +++ b/llvm/include/llvm/CodeGen/MachineModuleInfo.h @@ -338,9 +338,17 @@ public: /// getCallSiteLandingPad - Get the call site indexes for a landing pad EH /// symbol. SmallVectorImpl<unsigned> &getCallSiteLandingPad(MCSymbol *Sym) { + assert(hasCallSiteLandingPad(Sym) && + "missing call site number for landing pad!"); return LPadToCallSiteMap[Sym]; } + /// hasCallSiteLandingPad - Return true if the landing pad Eh symbol has an + /// associated call site. + bool hasCallSiteLandingPad(MCSymbol *Sym) { + return !LPadToCallSiteMap[Sym].empty(); + } + /// setCallSiteBeginLabel - Map the begin label for a call site. void setCallSiteBeginLabel(MCSymbol *BeginLabel, unsigned Site) { CallSiteMap[BeginLabel] = Site; |