diff options
author | Vedant Kumar <vsk@apple.com> | 2015-10-06 20:31:57 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2015-10-06 20:31:57 +0000 |
commit | 1ab5ea564fc500ed406f384f74c5f858b92fd92d (patch) | |
tree | 04086d6ad16dea1fd9ac95786f254b49269cfc2c /llvm/lib/IR/LLVMContextImpl.h | |
parent | 2b56f86dab69604b157f3b3ba3a38950a14782a6 (diff) | |
download | bcm5719-llvm-1ab5ea564fc500ed406f384f74c5f858b92fd92d.tar.gz bcm5719-llvm-1ab5ea564fc500ed406f384f74c5f858b92fd92d.zip |
[Function] Clean up {prefix,prologue} data routines (NFC)
Factor out some common code used to get+set function prefix/prologue
data. This may come in handy if we ever decide to store personality
functions in the same way we store prefix/prologue data.
Differential Revision: http://reviews.llvm.org/D13120
Reviewed-by: bogner
llvm-svn: 249460
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.h')
-rw-r--r-- | llvm/lib/IR/LLVMContextImpl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.h b/llvm/lib/IR/LLVMContextImpl.h index 1d410692b6a..2df7d04708e 100644 --- a/llvm/lib/IR/LLVMContextImpl.h +++ b/llvm/lib/IR/LLVMContextImpl.h @@ -972,16 +972,16 @@ public: /// instructions in different blocks at the same location. DenseMap<std::pair<const char *, unsigned>, unsigned> DiscriminatorTable; + typedef DenseMap<const Function *, ReturnInst *> FunctionDataMapTy; + /// \brief Mapping from a function to its prefix data, which is stored as the /// operand of an unparented ReturnInst so that the prefix data has a Use. - typedef DenseMap<const Function *, ReturnInst *> PrefixDataMapTy; - PrefixDataMapTy PrefixDataMap; + FunctionDataMapTy PrefixDataMap; /// \brief Mapping from a function to its prologue data, which is stored as /// the operand of an unparented ReturnInst so that the prologue data has a /// Use. - typedef DenseMap<const Function *, ReturnInst *> PrologueDataMapTy; - PrologueDataMapTy PrologueDataMap; + FunctionDataMapTy PrologueDataMap; int getOrAddScopeRecordIdxEntry(MDNode *N, int ExistingIdx); int getOrAddScopeInlinedAtIdxEntry(MDNode *Scope, MDNode *IA,int ExistingIdx); |