[llvm-commits] CVS: llvm/tools/lli/ExecutionEngine.cpp lli.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Dec 23 18:40:00 PST 2002
Changes in directory llvm/tools/lli:
ExecutionEngine.cpp updated: 1.1 -> 1.2
lli.cpp updated: 1.14 -> 1.15
---
Log message:
Fixes to compile with GCC 3.2
---
Diffs of the changes:
Index: llvm/tools/lli/ExecutionEngine.cpp
diff -u llvm/tools/lli/ExecutionEngine.cpp:1.1 llvm/tools/lli/ExecutionEngine.cpp:1.2
--- llvm/tools/lli/ExecutionEngine.cpp:1.1 Mon Dec 23 18:01:01 2002
+++ llvm/tools/lli/ExecutionEngine.cpp Mon Dec 23 18:39:16 2002
@@ -56,7 +56,7 @@
}
break;
default:
- cout << "ERROR: Constant unimp for type: " << C->getType() << "\n";
+ std::cout << "ERROR: Constant unimp for type: " << C->getType() << "\n";
}
return Result;
}
@@ -92,7 +92,7 @@
Ptr->Untyped[7] = (Val.ULongVal >> 56) & 255;
break;
default:
- cout << "Cannot store value of type " << Ty << "!\n";
+ std::cout << "Cannot store value of type " << Ty << "!\n";
}
} else {
switch (Ty->getPrimitiveID()) {
@@ -123,7 +123,7 @@
Ptr->Untyped[0] = (Val.ULongVal >> 56) & 255;
break;
default:
- cout << "Cannot store value of type " << Ty << "!\n";
+ std::cout << "Cannot store value of type " << Ty << "!\n";
}
}
}
@@ -141,7 +141,7 @@
switch (Init->getType()->getPrimitiveID()) {
case Type::ArrayTyID: {
const ConstantArray *CPA = cast<ConstantArray>(Init);
- const vector<Use> &Val = CPA->getValues();
+ const std::vector<Use> &Val = CPA->getValues();
unsigned ElementSize =
getTargetData().getTypeSize(cast<ArrayType>(CPA->getType())->getElementType());
for (unsigned i = 0; i < Val.size(); ++i)
@@ -153,7 +153,7 @@
const ConstantStruct *CPS = cast<ConstantStruct>(Init);
const StructLayout *SL =
getTargetData().getStructLayout(cast<StructType>(CPS->getType()));
- const vector<Use> &Val = CPS->getValues();
+ const std::vector<Use> &Val = CPS->getValues();
for (unsigned i = 0; i < Val.size(); ++i)
InitializeMemory(cast<Constant>(Val[i].get()),
(char*)Addr+SL->MemberOffsets[i]);
Index: llvm/tools/lli/lli.cpp
diff -u llvm/tools/lli/lli.cpp:1.14 llvm/tools/lli/lli.cpp:1.15
--- llvm/tools/lli/lli.cpp:1.14 Mon Dec 23 17:59:32 2002
+++ llvm/tools/lli/lli.cpp Mon Dec 23 18:39:16 2002
@@ -51,17 +51,17 @@
" llvm interpreter & dynamic compiler\n");
// Load the bytecode...
- string ErrorMsg;
+ std::string ErrorMsg;
Module *M = ParseBytecodeFile(InputFile, &ErrorMsg);
if (M == 0) {
- cout << "Error parsing '" << InputFile << "': "
- << ErrorMsg << "\n";
+ std::cout << "Error parsing '" << InputFile << "': "
+ << ErrorMsg << "\n";
exit(1);
}
#if 0
// Link in the runtime library for LLI...
- string RuntimeLib = getCurrentExecutablePath();
+ std::string RuntimeLib = getCurrentExecutablePath();
if (!RuntimeLib.empty()) RuntimeLib += "/";
RuntimeLib += "RuntimeLib.bc";
More information about the llvm-commits
mailing list