summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Transforms/IPO/Internalize.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/llvm/include/llvm/Transforms/IPO/Internalize.h b/llvm/include/llvm/Transforms/IPO/Internalize.h
new file mode 100644
index 00000000000..b51584ae37c
--- /dev/null
+++ b/llvm/include/llvm/Transforms/IPO/Internalize.h
@@ -0,0 +1,27 @@
+//====- llvm/Transforms/IPO/Internalize.h - Internalization API -*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_INTERNALIZE_H
+#define LLVM_INTERNALIZE_H
+
+#include "llvm/IR/GlobalValue.h"
+
+#include <functional>
+
+namespace llvm {
+class Module;
+class CallGraph;
+
+bool internalizeModule(
+ Module &TheModule,
+ const std::function<bool(const GlobalValue &)> &MustPreserveGV,
+ CallGraph *CG = nullptr);
+}
+
+#endif // LLVM_INTERNALIZE_H
OpenPOWER on IntegriCloud