aboutsummaryrefslogtreecommitdiff
path: root/tools/opt/opt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r--tools/opt/opt.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 3dedd0b10c..0dc94f5bdd 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -75,7 +75,7 @@ int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv,
" llvm .bc -> .bc modular optimizer\n");
- Module *C = ParseBytecodeFile(InputFilename.getValue());
+ Module *C = ParseBytecodeFile(InputFilename);
if (C == 0) {
cerr << "bytecode didn't read correctly.\n";
return 1;
@@ -99,11 +99,11 @@ int main(int argc, char **argv) {
}
ostream *Out = &cout; // Default to printing to stdout...
- if (OutputFilename.getValue() != "") {
- Out = new ofstream(OutputFilename.getValue().c_str(),
- (Force.getValue() ? 0 : ios::noreplace)|ios::out);
+ if (OutputFilename != "") {
+ Out = new ofstream(OutputFilename.c_str(),
+ (Force ? 0 : ios::noreplace)|ios::out);
if (!Out->good()) {
- cerr << "Error opening " << OutputFilename.getValue() << "!\n";
+ cerr << "Error opening " << OutputFilename << "!\n";
delete C;
return 1;
}