Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/cmake/modules/FindLLVM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ endif ()
foreach (COMPONENT clangFrontend clangDriver clangSerialization
clangParse clangSema clangAnalysis clangAST
clangASTMatchers clangEdit clangLex
clangSupport clangAPINotes clangBasic)
clangSupport clangAPINotes clangBasic
clangOptions clangAnalysisLifetimeSafety)
find_library ( _CLANG_${COMPONENT}_LIBRARY
NAMES ${COMPONENT}
PATHS ${LLVM_LIB_DIR}
Expand Down
3 changes: 3 additions & 0 deletions src/liboslcomp/oslcomp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ OSLCompilerImpl::preprocess_buffer(const std::string& buffer,

inst.setTarget(target);

#if OSL_LLVM_VERSION >= 220
inst.createVirtualFileSystem();
#endif
inst.createFileManager();
#if OSL_LLVM_VERSION >= 220
inst.createSourceManager();
Expand Down
2 changes: 1 addition & 1 deletion src/liboslexec/llvm_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ LLVM_Util::debug_setup_compilation_unit(const char* compile_unit_name)
osl_identity, // Identify the producer of debugging information and code. Usually this is a compiler version string.
true, // isOptimized
"<todo>", // This string lists command line options. This string is directly embedded in debug info output which may be used by a tool analyzing generated debugging information.
OSL_VERSION, // This indicates runtime version for languages like Objective-C
0, // This indicates runtime version for languages like Objective-C
llvm::StringRef(), // SplitName = he name of the file that we'll split debug info out into.
llvm::DICompileUnit::DebugEmissionKind::
LineTablesOnly, // DICompileUnit::DebugEmissionKind
Expand Down
Loading