diff options
author | Chris Lattner <sabre@nondot.org> | 2002-01-20 22:54:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-01-20 22:54:45 +0000 |
commit | 7f74a56e2436c40b18a672ad7d58727cd6832329 (patch) | |
tree | 6a4683a53f7eb71b8a3425008ef21268c2b2c8fd /llvm/tools/gccas/gccas.cpp | |
parent | 850d4f6af1a0e9de3fa6e10afb04e3738fcc5d67 (diff) | |
download | bcm5719-llvm-7f74a56e2436c40b18a672ad7d58727cd6832329.tar.gz bcm5719-llvm-7f74a56e2436c40b18a672ad7d58727cd6832329.zip |
Changes to build successfully with GCC 3.02
llvm-svn: 1503
Diffstat (limited to 'llvm/tools/gccas/gccas.cpp')
-rw-r--r-- | llvm/tools/gccas/gccas.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/gccas/gccas.cpp b/llvm/tools/gccas/gccas.cpp index b9e3a6207db..073b2483499 100644 --- a/llvm/tools/gccas/gccas.cpp +++ b/llvm/tools/gccas/gccas.cpp @@ -44,17 +44,17 @@ int main(int argc, char **argv) { } if (OutputFilename == "") { // Didn't specify an output filename? - string IFN = InputFilename; + std::string IFN = InputFilename; int Len = IFN.length(); if (IFN[Len-2] == '.' && IFN[Len-1] == 's') { // Source ends in .s? - OutputFilename = string(IFN.begin(), IFN.end()-2); + OutputFilename = std::string(IFN.begin(), IFN.end()-2); } else { OutputFilename = IFN; // Append a .o to it } OutputFilename += ".o"; } - Out = new ofstream(OutputFilename.c_str(), ios::out); + Out = new std::ofstream(OutputFilename.c_str(), ios::out); if (!Out->good()) { cerr << "Error opening " << OutputFilename << "!\n"; return 1; @@ -63,7 +63,7 @@ int main(int argc, char **argv) { // In addition to just parsing the input from GCC, we also want to spiff it up // a little bit. Do this now. // - vector<Pass*> Passes; + std::vector<Pass*> Passes; Passes.push_back(new opt::DeadCodeElimination()); // Remove Dead code/vars Passes.push_back(new CleanupGCCOutput()); // Fix gccisms Passes.push_back(new InductionVariableSimplify()); // Simplify indvars |