aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Bytecode/Writer/SlotCalculator.cpp4
-rw-r--r--lib/VMCore/SlotCalculator.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Bytecode/Writer/SlotCalculator.cpp b/lib/Bytecode/Writer/SlotCalculator.cpp
index 8bd0b494f4..ce62df9b72 100644
--- a/lib/Bytecode/Writer/SlotCalculator.cpp
+++ b/lib/Bytecode/Writer/SlotCalculator.cpp
@@ -144,8 +144,8 @@ void SlotCalculator::incorporateFunction(const Function *M) {
SC_DEBUG("Inserting function constants:\n";
for (constant_iterator I = constant_begin(M), E = constant_end(M);
I != E; ++I) {
- cerr << " " << I->getType()->getDescription()
- << " " << I->getStrValue() << endl;
+ cerr << " " << *I->getType()
+ << " " << *I << "\n";
});
// Emit all of the constants that are being used by the instructions in the
diff --git a/lib/VMCore/SlotCalculator.cpp b/lib/VMCore/SlotCalculator.cpp
index 8bd0b494f4..ce62df9b72 100644
--- a/lib/VMCore/SlotCalculator.cpp
+++ b/lib/VMCore/SlotCalculator.cpp
@@ -144,8 +144,8 @@ void SlotCalculator::incorporateFunction(const Function *M) {
SC_DEBUG("Inserting function constants:\n";
for (constant_iterator I = constant_begin(M), E = constant_end(M);
I != E; ++I) {
- cerr << " " << I->getType()->getDescription()
- << " " << I->getStrValue() << endl;
+ cerr << " " << *I->getType()
+ << " " << *I << "\n";
});
// Emit all of the constants that are being used by the instructions in the