forked from OSchip/llvm-project
[GlobalISel] Fix a ranlib warning about empty TOC.
Fixes PR26733 llvm-svn: 262057
This commit is contained in:
parent
5b64034a43
commit
87e23e5733
|
@ -14,8 +14,11 @@
|
||||||
|
|
||||||
#include "llvm/Support/Compiler.h"
|
#include "llvm/Support/Compiler.h"
|
||||||
|
|
||||||
// Anonymous namespace so that we do not step on anyone's toes.
|
|
||||||
namespace {
|
namespace llvm {
|
||||||
LLVM_ATTRIBUTE_UNUSED void foo(void) {
|
// 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) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue