P4 to Git Change 1132635 by smekhano@stas-rampitec-hsa on 2015/03/19 17:27:36
ECR #333753 - part of the changes to use llvm 3.6 Testing: smoke, precheckin Reviewed by Brian Sumner Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/acl.cpp#27 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#122 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/sync.cpp#1 add ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/sync.hpp#1 add ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/v0_8/if_acl.cpp#63 edit
This commit is contained in:
@@ -115,8 +115,7 @@ using namespace llvm;
|
||||
inline llvm::Module*
|
||||
LoadFile(const std::string &Filename, LLVMContext& Context)
|
||||
{
|
||||
bool Exists;
|
||||
if (sys::fs::exists(Filename, Exists) || !Exists) {
|
||||
if (!sys::fs::exists(Filename)) {
|
||||
// dbgs() << "Bitcode file: '" << Filename.c_str() << "' does not exist.\n";
|
||||
return 0;
|
||||
}
|
||||
@@ -137,8 +136,7 @@ inline llvm::Module*
|
||||
|
||||
inline llvm::Module*
|
||||
LoadLibrary(const std::string& libFile, LLVMContext& Context, MemoryBuffer** Buffer) {
|
||||
bool Exists;
|
||||
if (sys::fs::exists(libFile, Exists) || !Exists) {
|
||||
if (!sys::fs::exists(libFile)) {
|
||||
// dbgs() << "Bitcode file: '" << Filename.c_str() << "' does not exist.\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user