diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-03 21:48:53 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-03 21:48:53 +0000 |
commit | 5442c71f2ef77c2c1b5ed0555e70332f463a1520 (patch) | |
tree | a4acbb3ad56e509982db3b1d3282d1352c3099ad /llvm/lib/Analysis/LibCallSemantics.cpp | |
parent | f568b074dbf0c1e8950d2786873a32e5c4baa5c4 (diff) | |
download | bcm5719-llvm-5442c71f2ef77c2c1b5ed0555e70332f463a1520.tar.gz bcm5719-llvm-5442c71f2ef77c2c1b5ed0555e70332f463a1520.zip |
Thread const correctness through a bunch of AliasAnalysis interfaces and
eliminate several const_casts.
Make CallSite implicitly convertible to ImmutableCallSite.
Rename the getModRefBehavior for intrinsic IDs to
getIntrinsicModRefBehavior to avoid overload ambiguity with CallSite,
which happens to be implicitly convertible to bool.
llvm-svn: 110155
Diffstat (limited to 'llvm/lib/Analysis/LibCallSemantics.cpp')
-rw-r--r-- | llvm/lib/Analysis/LibCallSemantics.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LibCallSemantics.cpp b/llvm/lib/Analysis/LibCallSemantics.cpp index e0060c3e89b..81b0f46f374 100644 --- a/llvm/lib/Analysis/LibCallSemantics.cpp +++ b/llvm/lib/Analysis/LibCallSemantics.cpp @@ -40,7 +40,8 @@ const LibCallLocationInfo &LibCallInfo::getLocationInfo(unsigned LocID) const { /// getFunctionInfo - Return the LibCallFunctionInfo object corresponding to /// the specified function if we have it. If not, return null. -const LibCallFunctionInfo *LibCallInfo::getFunctionInfo(Function *F) const { +const LibCallFunctionInfo * +LibCallInfo::getFunctionInfo(const Function *F) const { StringMap<const LibCallFunctionInfo*> *Map = getMap(Impl); /// If this is the first time we are querying for this info, lazily construct |