Remove old frivolous uses of getStrValue in a debugging statement
authorChris Lattner <sabre@nondot.org>
Tue, 16 Apr 2002 21:36:59 +0000 (21:36 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 16 Apr 2002 21:36:59 +0000 (21:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2270 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Writer/SlotCalculator.cpp
lib/VMCore/SlotCalculator.cpp

index 8bd0b494f47f004c769421bef37588fbc30ff37f..ce62df9b721109a224380343449490e18d9af62e 100644 (file)
@@ -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
index 8bd0b494f47f004c769421bef37588fbc30ff37f..ce62df9b721109a224380343449490e18d9af62e 100644 (file)
@@ -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