diff options
author | Ruiling Song <ruiling.song@intel.com> | 2015-02-04 15:08:19 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2015-02-11 16:31:47 +0800 |
commit | 19b817de8b5f9767167316907149ee48b87f214e (patch) | |
tree | ef351a14bb9e55daee3cc0e47512d517e03bd43a /backend | |
parent | 29e3908c9b8ff6d13eed3e545b6768f446909ac3 (diff) |
GBE: Fix a build error against llvm release version
The DEBUG macro will try to link llvm::DebugFlag and llvm::isCurrentDebugType()
which is absent in release version of LLVM library. So define it to empty.
The problem occurs when building debug version of beignet against the
release version of llvm.
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Tested-by: "Meng, Mengmeng" <mengmeng.meng@intel.com>
Diffstat (limited to 'backend')
-rw-r--r-- | backend/src/llvm/ExpandLargeIntegers.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/src/llvm/ExpandLargeIntegers.cpp b/backend/src/llvm/ExpandLargeIntegers.cpp index cbb2708b..5b620fcb 100644 --- a/backend/src/llvm/ExpandLargeIntegers.cpp +++ b/backend/src/llvm/ExpandLargeIntegers.cpp @@ -105,7 +105,10 @@ using namespace llvm; #define DEBUG_TYPE "nacl-expand-ints" - +#ifdef DEBUG + #undef DEBUG + #define DEBUG(...) +#endif // Break instructions up into no larger than 64-bit chunks. static const unsigned kChunkBits = 64; static const unsigned kChunkBytes = kChunkBits / CHAR_BIT; |