[GlobalISel] Fix a ranlib warning about empty TOC.
authorQuentin Colombet <qcolombet@apple.com>
Fri, 26 Feb 2016 20:05:02 +0000 (20:05 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Fri, 26 Feb 2016 20:05:02 +0000 (20:05 +0000)
Fixes PR26733

llvm-svn: 262057

llvm/lib/CodeGen/GlobalISel/EmptyFile.cpp

index 02cfde8..cc509ff 100644 (file)
 
 #include "llvm/Support/Compiler.h"
 
-// Anonymous namespace so that we do not step on anyone's toes.
-namespace {
-LLVM_ATTRIBUTE_UNUSED void foo(void) {
+
+namespace llvm {
+// Export a global symbol so that ranlib does not complain
+// about the TOC being empty for the global-isel library when
+// we do not build global-isel.
+LLVM_ATTRIBUTE_UNUSED void DummyFunctionToSilenceRanlib(void) {
 }
 }