Skip to content

Commit c385e4f

Browse files
committed
Update changes after fixing merge commit
1 parent eb001bd commit c385e4f

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

lib/CppInterOp/CXCppInterOp.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,7 @@ CXTypeKind cxtype_GetTypeKind(QualType T) {
200200
TKCASE(Elaborated);
201201
TKCASE(Pipe);
202202
TKCASE(Attributed);
203-
#if CLANG_VERSION_MAJOR >= 16
204203
TKCASE(BTFTagAttributed);
205-
#endif
206204
TKCASE(Atomic);
207205
default:
208206
return CXType_Unexposed;

lib/CppInterOp/CppInterOp.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ std::string Demangle(const std::string& mangled_name) {
181181
#else
182182
std::string demangle =
183183
itaniumDemangle(mangled_name.c_str(), nullptr, nullptr, nullptr);
184-
#endif
185184
#endif
186185
return demangle;
187186
}
@@ -2981,12 +2980,7 @@ std::string DetectResourceDir(const char* ClangBinaryName /* = clang */) {
29812980

29822981
std::string detected_resource_dir = outs.back();
29832982

2984-
std::string version =
2985-
#if CLANG_VERSION_MAJOR < 16
2986-
CLANG_VERSION_STRING;
2987-
#else
2988-
CLANG_VERSION_MAJOR_STRING;
2989-
#endif
2983+
std::string version = CLANG_VERSION_MAJOR_STRING;
29902984
// We need to check if the detected resource directory is compatible.
29912985
if (llvm::sys::path::filename(detected_resource_dir) != version)
29922986
return "";

0 commit comments

Comments
 (0)