mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 02:32:11 +00:00
Rename WriteConstantInt to WriteConstantInternal, to avoid confusion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e84178a0bd
commit
40cf12fe77
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user