diff options
author | Victor Hernandez <vhernandez@apple.com> | 2010-01-20 04:45:57 +0000 |
---|---|---|
committer | Victor Hernandez <vhernandez@apple.com> | 2010-01-20 04:45:57 +0000 |
commit | 8fffff537194e2375e65600f27d716c99f0eb38a (patch) | |
tree | 908c9602ae4988f3cd66579cb12cf59ee23e66f1 /lib/VMCore/AsmWriter.cpp | |
parent | 42aafd7e578707ca20dec456e8996849984272bb (diff) |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index c0aeaf93c8..c9f3849c92 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); |