Revert r175120 and r175121. Clang is producing the expected asm names again.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 14 Feb 2013 03:33:34 +0000 (03:33 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 14 Feb 2013 03:33:34 +0000 (03:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175133 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCJITInfo.cpp
lib/Target/X86/X86JITInfo.cpp

index df40cf187245967d57c6be85d27950d79e19cf2a..851de1778a9b7c5f3f1263b10ab7308771c17e82 100644 (file)
@@ -292,7 +292,7 @@ void PPC64CompilationCallback() {
 #endif
 
 extern "C" {
-void* LLVM_ATTRIBUTE_USED PPCCompilationCallbackC(unsigned *StubCallAddrPlus4,
+static void* LLVM_ATTRIBUTE_USED PPCCompilationCallbackC(unsigned *StubCallAddrPlus4,
                                                          unsigned *OrigCallAddrPlus4,
                                                          bool is64Bit) {
   // Adjust the pointer to the address of the call instruction in the stub
index 2e003f7a4601aaafc4a4457c0ee7616db31b4c9b..0a4accee99092814082561ddc739671ecc316653 100644 (file)
@@ -342,6 +342,12 @@ extern "C" {
 /// must locate the start of the stub or call site and pass it into the JIT
 /// compiler function.
 extern "C" {
+#if !(defined (X86_64_JIT) && defined(_MSC_VER))
+ // the following function is called only from this translation unit,
+ // unless we are under 64bit Windows with MSC, where there is
+ // no support for inline assembly
+static
+#endif
 void LLVM_ATTRIBUTE_USED
 X86CompilationCallback2(intptr_t *StackPtr, intptr_t RetAddr) {
   intptr_t *RetAddrLoc = &StackPtr[1];