summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-02-14 03:33:34 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-02-14 03:33:34 +0000
commit8868faac14855e0b8eebfabc2665de016c01df5d (patch)
tree7d6a8f9fd5dbd94f112f3f881f452ec03819dca8 /llvm/lib
parent46d2b6bacfc3208376668c41b7907468bf7df0ff (diff)
downloadbcm5719-llvm-8868faac14855e0b8eebfabc2665de016c01df5d.tar.gz
bcm5719-llvm-8868faac14855e0b8eebfabc2665de016c01df5d.zip
Revert r175120 and r175121. Clang is producing the expected asm names again.
llvm-svn: 175133
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCJITInfo.cpp2
-rw-r--r--llvm/lib/Target/X86/X86JITInfo.cpp6
2 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCJITInfo.cpp b/llvm/lib/Target/PowerPC/PPCJITInfo.cpp
index df40cf18724..851de1778a9 100644
--- a/llvm/lib/Target/PowerPC/PPCJITInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCJITInfo.cpp
@@ -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
diff --git a/llvm/lib/Target/X86/X86JITInfo.cpp b/llvm/lib/Target/X86/X86JITInfo.cpp
index 2e003f7a460..0a4accee990 100644
--- a/llvm/lib/Target/X86/X86JITInfo.cpp
+++ b/llvm/lib/Target/X86/X86JITInfo.cpp
@@ -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];
OpenPOWER on IntegriCloud