aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/AsmWriter.cpp
diff options
context:
space:
mode:
authorVictor Hernandez <vhernandez@apple.com>2010-01-20 04:45:57 +0000
committerVictor Hernandez <vhernandez@apple.com>2010-01-20 04:45:57 +0000
commit3418cb581ffcc0f907764cd6d091cdb23a9aa6eb (patch)
tree908c9602ae4988f3cd66579cb12cf59ee23e66f1 /lib/VMCore/AsmWriter.cpp
parentfd311dffa36fe6e48734ba28e6439dcb5b22f7fb (diff)
downloadexternal_llvm-3418cb581ffcc0f907764cd6d091cdb23a9aa6eb.zip
external_llvm-3418cb581ffcc0f907764cd6d091cdb23a9aa6eb.tar.gz
external_llvm-3418cb581ffcc0f907764cd6d091cdb23a9aa6eb.tar.bz2
Refactor common parts of MDNode::getFunction() and assertLocalFunction() into getFunctionForValue()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r--lib/VMCore/AsmWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index c0aeaf9..c9f3849 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/lib/VMCore/AsmWriter.cpp
@@ -2062,7 +2062,7 @@ void Value::print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW) const {
else
W.printAlias(cast<GlobalAlias>(GV));
} else if (const MDNode *N = dyn_cast<MDNode>(this)) {
- Function *F = N->getFunction();
+ const Function *F = N->getFunction();
SlotTracker SlotTable(F);
AssemblyWriter W(OS, SlotTable, F ? getModuleFromVal(F) : 0, AAW);
W.printMDNodeBody(N);