diff options
author | Samuel Antao <sfantao@us.ibm.com> | 2016-02-06 06:22:46 +0000 |
---|---|---|
committer | Samuel Antao <sfantao@us.ibm.com> | 2016-02-06 06:22:46 +0000 |
commit | 0a1eaf802534eaa15891be1c02c68a203f61c147 (patch) | |
tree | 1eaed8786a4e13afa3849b1db73643ff09690547 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 880988af09bbe6d634959d3b5bb94cf8bd6973cd (diff) | |
download | llvm-0a1eaf802534eaa15891be1c02c68a203f61c147.zip llvm-0a1eaf802534eaa15891be1c02c68a203f61c147.tar.gz llvm-0a1eaf802534eaa15891be1c02c68a203f61c147.tar.bz2 |
Revert r259977 - [OpenMP] Reorganize code to allow specialized code generation for different devices.
It triggered some problem in the configuration related with zlib and exposed in the driver.
llvm-svn: 259984
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index aabcc52..a30e624 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -20,7 +20,6 @@ #include "CGObjCRuntime.h" #include "CGOpenCLRuntime.h" #include "CGOpenMPRuntime.h" -#include "CGOpenMPRuntimeNVPTX.h" #include "CodeGenFunction.h" #include "CodeGenPGO.h" #include "CodeGenTBAA.h" @@ -201,20 +200,7 @@ void CodeGenModule::createOpenCLRuntime() { } void CodeGenModule::createOpenMPRuntime() { - // Select a specialized code generation class based on the target, if any. - // If it does not exist use the default implementation. - switch (getTarget().getTriple().getArch()) { - - case llvm::Triple::nvptx: - case llvm::Triple::nvptx64: - assert(getLangOpts().OpenMPIsDevice && - "OpenMP NVPTX is only prepared to deal with device code."); - OpenMPRuntime = new CGOpenMPRuntimeNVPTX(*this); - break; - default: - OpenMPRuntime = new CGOpenMPRuntime(*this); - break; - } + OpenMPRuntime = new CGOpenMPRuntime(*this); } void CodeGenModule::createCUDARuntime() { |