summaryrefslogtreecommitdiff
path: root/backend/src/llvm/llvm_to_gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src/llvm/llvm_to_gen.cpp')
-rw-r--r--backend/src/llvm/llvm_to_gen.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/backend/src/llvm/llvm_to_gen.cpp b/backend/src/llvm/llvm_to_gen.cpp
index 755793ec..84ba3833 100644
--- a/backend/src/llvm/llvm_to_gen.cpp
+++ b/backend/src/llvm/llvm_to_gen.cpp
@@ -86,10 +86,13 @@ namespace gbe
FPM.add(new DataLayout(DL));
#endif
+ // XXX remove the verifier pass to workaround a non-fatal error.
+ // add this pass cause the Clang abort with the following error message:
+ // "Global is external, but doesn't have external or weak linkage"
#if LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >=5
- FPM.add(createVerifierPass(true));
+ //FPM.add(createVerifierPass(true));
#else
- FPM.add(createVerifierPass());
+ //FPM.add(createVerifierPass());
#endif
FPM.add(new TargetLibraryInfo(*libraryInfo));
FPM.add(createTypeBasedAliasAnalysisPass());