[GlobalISel] Fix a ranlib warning about empty TOC.

Fixes PR26733

llvm-svn: 262057
This commit is contained in:
Quentin Colombet 2016-02-26 20:05:02 +00:00
parent 5b64034a43
commit 87e23e5733
1 changed files with 6 additions and 3 deletions

View File

@ -14,8 +14,11 @@
#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) {
}
}