summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-14 20:57:55 +0000
committerDan Gohman <gohman@apple.com>2010-07-14 20:57:55 +0000
commitefb8dbb3f14de382b200f4a0c2ce7e27dee55142 (patch)
tree001a9df53663a8e55106c0dfec3cde3f179a41ed
parent409183ff7c9cedfb36b644444f116979aef115ff (diff)
downloadbcm5719-llvm-efb8dbb3f14de382b200f4a0c2ce7e27dee55142.tar.gz
bcm5719-llvm-efb8dbb3f14de382b200f4a0c2ce7e27dee55142.zip
Rename WriteConstantInt to WriteConstantInternal, to avoid confusion.
llvm-svn: 108357
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index 7a471ef98e1..d5b912bce11 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/lib/VMCore/AsmWriter.cpp
@@ -855,8 +855,9 @@ static void WriteOptimizationInfo(raw_ostream &Out, const User *U) {
}
}
-static void WriteConstantInt(raw_ostream &Out, const Constant *CV,
- TypePrinting &TypePrinter, SlotTracker *Machine) {
+static void WriteConstantInternal(raw_ostream &Out, const Constant *CV,
+ TypePrinting &TypePrinter,
+ SlotTracker *Machine) {
if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
if (CI->getType()->isIntegerTy(1)) {
Out << (CI->getZExtValue() ? "true" : "false");
@@ -1147,7 +1148,7 @@ static void WriteAsOperandInternal(raw_ostream &Out, const Value *V,
const Constant *CV = dyn_cast<Constant>(V);
if (CV && !isa<GlobalValue>(CV)) {
assert(TypePrinter && "Constants require TypePrinting!");
- WriteConstantInt(Out, CV, *TypePrinter, Machine);
+ WriteConstantInternal(Out, CV, *TypePrinter, Machine);
return;
}
@@ -2138,7 +2139,7 @@ void Value::print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW) const {
TypePrinting TypePrinter;
TypePrinter.print(C->getType(), OS);
OS << ' ';
- WriteConstantInt(OS, C, TypePrinter, 0);
+ WriteConstantInternal(OS, C, TypePrinter, 0);
} else if (isa<InlineAsm>(this) || isa<MDString>(this) ||
isa<Argument>(this)) {
WriteAsOperand(OS, this, true, 0);
OpenPOWER on IntegriCloud