summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/LTO/UpdateCompilerUsed.h6
-rw-r--r--llvm/lib/LTO/LTOCodeGenerator.cpp2
-rw-r--r--llvm/lib/LTO/ThinLTOCodeGenerator.cpp1
-rw-r--r--llvm/lib/LTO/UpdateCompilerUsed.cpp2
4 files changed, 4 insertions, 7 deletions
diff --git a/llvm/include/llvm/LTO/UpdateCompilerUsed.h b/llvm/include/llvm/LTO/UpdateCompilerUsed.h
index e36fe4c75ce..4be0027e97d 100644
--- a/llvm/include/llvm/LTO/UpdateCompilerUsed.h
+++ b/llvm/include/llvm/LTO/UpdateCompilerUsed.h
@@ -17,8 +17,6 @@
#include "llvm/ADT/StringSet.h"
#include "llvm/IR/GlobalValue.h"
-#include <functional>
-
namespace llvm {
class Module;
class TargetMachine;
@@ -27,8 +25,8 @@ class TargetMachine;
/// \p AsmUndefinedRefs, as well as the user-supplied functions definitions that
/// are also libcalls, and create or update the magic "llvm.compiler_used"
/// global in \p TheModule.
-void UpdateCompilerUsed(Module &TheModule, const TargetMachine &TM,
+void updateCompilerUsed(Module &TheModule, const TargetMachine &TM,
const StringSet<> &AsmUndefinedRefs);
}
-#endif // LLVM_LTO_LTOINTERNALIZE_H
+#endif // LLVM_LTO_UPDATE_COMPILER_USED_H
diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp
index 71107766675..579e055a689 100644
--- a/llvm/lib/LTO/LTOCodeGenerator.cpp
+++ b/llvm/lib/LTO/LTOCodeGenerator.cpp
@@ -455,7 +455,7 @@ void LTOCodeGenerator::applyScopeRestrictions() {
// Update the llvm.compiler_used globals to force preserving libcalls and
// symbols referenced from asm
- UpdateCompilerUsed(*MergedModule, *TargetMach, AsmUndefinedRefs);
+ updateCompilerUsed(*MergedModule, *TargetMach, AsmUndefinedRefs);
internalizeModule(*MergedModule, mustPreserveGV);
diff --git a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
index 36c3e2e9096..5c97e4d69e1 100644
--- a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
+++ b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
@@ -13,7 +13,6 @@
//===----------------------------------------------------------------------===//
#include "llvm/LTO/ThinLTOCodeGenerator.h"
-#include "llvm/LTO/UpdateCompilerUsed.h"
#ifdef HAVE_LLVM_REVISION
#include "LLVMLTORevision.h"
diff --git a/llvm/lib/LTO/UpdateCompilerUsed.cpp b/llvm/lib/LTO/UpdateCompilerUsed.cpp
index 11773082c22..83cdfef507c 100644
--- a/llvm/lib/LTO/UpdateCompilerUsed.cpp
+++ b/llvm/lib/LTO/UpdateCompilerUsed.cpp
@@ -112,7 +112,7 @@ private:
} // namespace anonymous
-void llvm::UpdateCompilerUsed(Module &TheModule, const TargetMachine &TM,
+void llvm::updateCompilerUsed(Module &TheModule, const TargetMachine &TM,
const StringSet<> &AsmUndefinedRefs) {
SmallPtrSet<const GlobalValue *, 8> UsedValues;
PreserveLibCallsAndAsmUsed(AsmUndefinedRefs, TM, UsedValues)
OpenPOWER on IntegriCloud