summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/LLVMContextImpl.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-01-19 02:13:50 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-01-19 02:13:50 +0000
commit6a93692a34a501ed8e4c735175780ee98f3cf48f (patch)
tree83214ee900ba9dd83b7819be9e50f0b37eb1eff0 /llvm/lib/IR/LLVMContextImpl.h
parent157a97a6a01424551748ace05bd9c0931e98aefe (diff)
downloadbcm5719-llvm-6a93692a34a501ed8e4c735175780ee98f3cf48f.tar.gz
bcm5719-llvm-6a93692a34a501ed8e4c735175780ee98f3cf48f.zip
Add a const lookup routine to get a BlockAddress constant if there is
one, but not create one. This is useful in the verifier when we want to query the constant if it exists but not create one. To be used in an upcoming commit. llvm-svn: 199568
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.h')
-rw-r--r--llvm/lib/IR/LLVMContextImpl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.h b/llvm/lib/IR/LLVMContextImpl.h
index 39e5d778ed6..04338272463 100644
--- a/llvm/lib/IR/LLVMContextImpl.h
+++ b/llvm/lib/IR/LLVMContextImpl.h
@@ -281,8 +281,8 @@ public:
StringMap<ConstantDataSequential*> CDSConstants;
-
- DenseMap<std::pair<Function*, BasicBlock*> , BlockAddress*> BlockAddresses;
+ DenseMap<std::pair<const Function *, const BasicBlock *>, BlockAddress *>
+ BlockAddresses;
ConstantUniqueMap<ExprMapKeyType, const ExprMapKeyType&, Type, ConstantExpr>
ExprConstants;
OpenPOWER on IntegriCloud