diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-11-09 19:40:39 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-11-09 19:40:39 +0000 |
commit | 873c8583e0f660ee0831751a9d105a57994159e1 (patch) | |
tree | dfb1b3c8888377ba4fb9f00b42f3c340cfa151d9 /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 1b3240b0aafa9bcef3918dfbaf60e412f474d276 (diff) | |
download | bcm5719-llvm-873c8583e0f660ee0831751a9d105a57994159e1.tar.gz bcm5719-llvm-873c8583e0f660ee0831751a9d105a57994159e1.zip |
Turn FrontendInputFile into an immutable class and have it also accept
a memory buffer instead of only a filename.
llvm-svn: 167627
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index 1c536a69703..9d6d183d97d 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -381,7 +381,7 @@ void CodeGenAction::ExecuteAction() { // FIXME: This is stupid, IRReader shouldn't take ownership. llvm::MemoryBuffer *MainFileCopy = llvm::MemoryBuffer::getMemBufferCopy(MainFile->getBuffer(), - getCurrentFile().c_str()); + getCurrentFile()); llvm::SMDiagnostic Err; TheModule.reset(ParseIR(MainFileCopy, Err, *VMContext)); |