Fix LLVM TOT build issue.
This commit is contained in:
4
Makefile
4
Makefile
@@ -129,6 +129,10 @@ objs/cbackend.o: cbackend.cpp
|
|||||||
@echo Compiling $<
|
@echo Compiling $<
|
||||||
@$(CXX) -fno-rtti -fno-exceptions $(CXXFLAGS) -o $@ -c $<
|
@$(CXX) -fno-rtti -fno-exceptions $(CXXFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
|
objs/opt.o: opt.cpp
|
||||||
|
@echo Compiling $<
|
||||||
|
@$(CXX) -fno-rtti $(CXXFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
objs/%.o: objs/%.cpp
|
objs/%.o: objs/%.cpp
|
||||||
@echo Compiling $<
|
@echo Compiling $<
|
||||||
@$(CXX) $(CXXFLAGS) -o $@ -c $<
|
@$(CXX) $(CXXFLAGS) -o $@ -c $<
|
||||||
|
|||||||
4
ispc.h
4
ispc.h
@@ -40,8 +40,8 @@
|
|||||||
|
|
||||||
#define ISPC_VERSION "1.3.1dev"
|
#define ISPC_VERSION "1.3.1dev"
|
||||||
|
|
||||||
#if !defined(LLVM_3_0) && !defined(LLVM_3_1) && !defined(LLVM_3_2)
|
#if !defined(LLVM_3_0) && !defined(LLVM_3_1) && !defined(LLVM_3_2) && !defined(LLVM_3_3)
|
||||||
#error "Only LLVM 3.0, 3.1, and the 3.2 development branch are supported"
|
#error "Only LLVM 3.0, 3.1, 3.2 and the 3.3 development branch are supported"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
|
|||||||
2
main.cpp
2
main.cpp
@@ -68,6 +68,8 @@ lPrintVersion() {
|
|||||||
"3.1"
|
"3.1"
|
||||||
#elif defined(LLVM_3_2)
|
#elif defined(LLVM_3_2)
|
||||||
"3.2"
|
"3.2"
|
||||||
|
#elif defined(LLVM_3_3)
|
||||||
|
"3.3"
|
||||||
#else
|
#else
|
||||||
#error "Unhandled LLVM version"
|
#error "Unhandled LLVM version"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1757,9 +1757,9 @@ Module::execPreprocessor(const char *infilename, llvm::raw_string_ostream *ostre
|
|||||||
clang::TextDiagnosticPrinter *diagPrinter =
|
clang::TextDiagnosticPrinter *diagPrinter =
|
||||||
new clang::TextDiagnosticPrinter(stderrRaw, clang::DiagnosticOptions());
|
new clang::TextDiagnosticPrinter(stderrRaw, clang::DiagnosticOptions());
|
||||||
#else
|
#else
|
||||||
clang::DiagnosticOptions diagOptions;
|
clang::DiagnosticOptions *diagOptions = new clang::DiagnosticOptions();
|
||||||
clang::TextDiagnosticPrinter *diagPrinter =
|
clang::TextDiagnosticPrinter *diagPrinter =
|
||||||
new clang::TextDiagnosticPrinter(stderrRaw, &diagOptions);
|
new clang::TextDiagnosticPrinter(stderrRaw, diagOptions);
|
||||||
#endif
|
#endif
|
||||||
llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> diagIDs(new clang::DiagnosticIDs);
|
llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> diagIDs(new clang::DiagnosticIDs);
|
||||||
#if defined(LLVM_3_0) || defined(LLVM_3_1)
|
#if defined(LLVM_3_0) || defined(LLVM_3_1)
|
||||||
@@ -1767,7 +1767,7 @@ Module::execPreprocessor(const char *infilename, llvm::raw_string_ostream *ostre
|
|||||||
new clang::DiagnosticsEngine(diagIDs, diagPrinter);
|
new clang::DiagnosticsEngine(diagIDs, diagPrinter);
|
||||||
#else
|
#else
|
||||||
clang::DiagnosticsEngine *diagEngine =
|
clang::DiagnosticsEngine *diagEngine =
|
||||||
new clang::DiagnosticsEngine(diagIDs, &diagOptions, diagPrinter);
|
new clang::DiagnosticsEngine(diagIDs, diagOptions, diagPrinter);
|
||||||
#endif
|
#endif
|
||||||
inst.setDiagnostics(diagEngine);
|
inst.setDiagnostics(diagEngine);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user