r216489 - Update for llvm api change
Rafael Espindola
rafael.espindola at gmail.com
Tue Aug 26 14:49:30 PDT 2014
Author: rafael
Date: Tue Aug 26 16:49:29 2014
New Revision: 216489
URL: http://llvm.org/viewvc/llvm-project?rev=216489&view=rev
Log:
Update for llvm api change
Modified:
cfe/trunk/lib/CodeGen/CodeGenAction.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenAction.cpp?rev=216489&r1=216488&r2=216489&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenAction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenAction.cpp Tue Aug 26 16:49:29 2014
@@ -674,7 +674,7 @@ void CodeGenAction::ExecuteAction() {
return;
llvm::SMDiagnostic Err;
- TheModule = parseIR(MainFile, Err, *VMContext);
+ TheModule = parseIR(MainFile->getMemBufferRef(), Err, *VMContext);
if (!TheModule) {
// Translate from the diagnostic info to the SourceManager location if
// available.
More information about the cfe-commits
mailing list