From 1760dc2a232bde2175606ba737938d3032f1e49d Mon Sep 17 00:00:00 2001 From: Eugene Zelenko Date: Tue, 5 Apr 2016 20:19:49 +0000 Subject: Fix Clang-tidy modernize-deprecated-headers warnings in remaining files; other minor fixes. Some Include What You Use suggestions were used too. Use anonymous namespaces in source files. Differential revision: http://reviews.llvm.org/D18778 llvm-svn: 265454 --- llvm/lib/Support/SearchForAddressOfSpecialSymbol.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Support/SearchForAddressOfSpecialSymbol.cpp') diff --git a/llvm/lib/Support/SearchForAddressOfSpecialSymbol.cpp b/llvm/lib/Support/SearchForAddressOfSpecialSymbol.cpp index 55f3320f640..711760b2479 100644 --- a/llvm/lib/Support/SearchForAddressOfSpecialSymbol.cpp +++ b/llvm/lib/Support/SearchForAddressOfSpecialSymbol.cpp @@ -14,10 +14,12 @@ // //===----------------------------------------------------------------------===// -#include +#include + +namespace { // Must declare the symbols in the global namespace. -static void *DoSearch(const char* symbolName) { +void *DoSearch(const char* symbolName) { #define EXPLICIT_SYMBOL(SYM) \ extern void *SYM; if (!strcmp(symbolName, #SYM)) return &SYM @@ -51,8 +53,12 @@ static void *DoSearch(const char* symbolName) { return nullptr; } +} // end anonymous namespace + namespace llvm { + void *SearchForAddressOfSpecialSymbol(const char* symbolName) { return DoSearch(symbolName); } -} // namespace llvm + +} // end namespace llvm -- cgit v1.2.3