[llvm-branch-commits] [cfe-branch] r118551 - in /cfe/branches/Apple/whitney: include/clang-c/Index.h tools/libclang/CIndex.cpp tools/libclang/libclang.darwin.exports tools/libclang/libclang.exports
Daniel Dunbar
daniel at zuster.org
Tue Nov 9 09:31:25 PST 2010
Author: ddunbar
Date: Tue Nov 9 11:31:24 2010
New Revision: 118551
URL: http://llvm.org/viewvc/llvm-project?rev=118551&view=rev
Log:
Merge r118223:
--
Author: Daniel Dunbar <daniel at zuster.org>
Date: Thu Nov 4 01:26:29 2010 +0000
libclang: Add clang_executeOnThread, for use in c-index-test (and only there,
preferably). Good thing c-index-test is written in C!!!!
Modified:
cfe/branches/Apple/whitney/include/clang-c/Index.h
cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp
cfe/branches/Apple/whitney/tools/libclang/libclang.darwin.exports
cfe/branches/Apple/whitney/tools/libclang/libclang.exports
Modified: cfe/branches/Apple/whitney/include/clang-c/Index.h
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney/include/clang-c/Index.h?rev=118551&r1=118550&r2=118551&view=diff
==============================================================================
--- cfe/branches/Apple/whitney/include/clang-c/Index.h (original)
+++ cfe/branches/Apple/whitney/include/clang-c/Index.h Tue Nov 9 11:31:24 2010
@@ -2208,6 +2208,9 @@
unsigned *endLine,
unsigned *endColumn);
CINDEX_LINKAGE void clang_enableStackTraces(void);
+CINDEX_LINKAGE void clang_executeOnThread(void (*fn)(void*), void *user_data,
+ unsigned stack_size);
+
/**
* @}
*/
Modified: cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp?rev=118551&r1=118550&r2=118551&view=diff
==============================================================================
--- cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp (original)
+++ cfe/branches/Apple/whitney/tools/libclang/CIndex.cpp Tue Nov 9 11:31:24 2010
@@ -3562,6 +3562,11 @@
llvm::sys::PrintStackTraceOnErrorSignal();
}
+void clang_executeOnThread(void (*fn)(void*), void *user_data,
+ unsigned stack_size) {
+ llvm::llvm_execute_on_thread(fn, user_data, stack_size);
+}
+
} // end: extern "C"
//===----------------------------------------------------------------------===//
Modified: cfe/branches/Apple/whitney/tools/libclang/libclang.darwin.exports
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney/tools/libclang/libclang.darwin.exports?rev=118551&r1=118550&r2=118551&view=diff
==============================================================================
--- cfe/branches/Apple/whitney/tools/libclang/libclang.darwin.exports (original)
+++ cfe/branches/Apple/whitney/tools/libclang/libclang.darwin.exports Tue Nov 9 11:31:24 2010
@@ -25,6 +25,7 @@
_clang_disposeTokens
_clang_disposeTranslationUnit
_clang_enableStackTraces
+_clang_executeOnThread
_clang_equalCursors
_clang_equalLocations
_clang_equalTypes
Modified: cfe/branches/Apple/whitney/tools/libclang/libclang.exports
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney/tools/libclang/libclang.exports?rev=118551&r1=118550&r2=118551&view=diff
==============================================================================
--- cfe/branches/Apple/whitney/tools/libclang/libclang.exports (original)
+++ cfe/branches/Apple/whitney/tools/libclang/libclang.exports Tue Nov 9 11:31:24 2010
@@ -25,6 +25,7 @@
clang_disposeTokens
clang_disposeTranslationUnit
clang_enableStackTraces
+clang_executeOnThread
clang_equalCursors
clang_equalLocations
clang_equalTypes
More information about the llvm-branch-commits
mailing list