diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-04-26 18:57:40 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-04-26 18:57:40 +0000 |
commit | 40c0efa5152b2dfd80d0a9e106a89c6231cbe2da (patch) | |
tree | 04a018ce3ef250cbc9f179be60652ee5175eff0f /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 088d001f05e62a393fd0ae2fa064db547e28664e (diff) | |
download | bcm5719-llvm-40c0efa5152b2dfd80d0a9e106a89c6231cbe2da.tar.gz bcm5719-llvm-40c0efa5152b2dfd80d0a9e106a89c6231cbe2da.zip |
Refactor frontend InputKind to prepare for treating module maps as a distinct kind of input.
No functionality change intended.
llvm-svn: 301442
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 b864069dc64..f57cbe86c41 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -944,7 +944,7 @@ std::unique_ptr<llvm::Module> CodeGenAction::loadModule(MemoryBufferRef MBRef) { void CodeGenAction::ExecuteAction() { // If this is an IR file, we have to treat it specially. - if (getCurrentFileKind() == IK_LLVM_IR) { + if (getCurrentFileKind().getLanguage() == InputKind::LLVM_IR) { BackendAction BA = static_cast<BackendAction>(Act); CompilerInstance &CI = getCompilerInstance(); std::unique_ptr<raw_pwrite_stream> OS = |