aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/IPO/ConstantMerge.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2016-05-04 03:21:20 +0000
committerDavide Italiano <davide@freebsd.org>2016-05-04 03:21:20 +0000
commit17da174b8b8368fabd5d4a4c7829465647ddb6bb (patch)
tree4fa41604fe02772c68b820b7534718e0f566fe72 /llvm/lib/Transforms/IPO/ConstantMerge.cpp
parent955dcf2dbc5085a657051cb388809d6f4df6b432 (diff)
downloadllvm-17da174b8b8368fabd5d4a4c7829465647ddb6bb.zip
llvm-17da174b8b8368fabd5d4a4c7829465647ddb6bb.tar.gz
llvm-17da174b8b8368fabd5d4a4c7829465647ddb6bb.tar.bz2
[IPO/ConstantMerge] Convert to static function, to facilitate transition to the new PM.
llvm-svn: 268476
Diffstat (limited to 'llvm/lib/Transforms/IPO/ConstantMerge.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/ConstantMerge.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/IPO/ConstantMerge.cpp b/llvm/lib/Transforms/IPO/ConstantMerge.cpp
index 80470a7..9489c75 100644
--- a/llvm/lib/Transforms/IPO/ConstantMerge.cpp
+++ b/llvm/lib/Transforms/IPO/ConstantMerge.cpp
@@ -44,11 +44,6 @@ namespace {
// For this pass, process all of the globals in the module, eliminating
// duplicate constants.
bool runOnModule(Module &M) override;
-
- // Return the alignment of the global, including converting the default
- // alignment to a concrete value.
- unsigned getAlignment(GlobalVariable *GV) const;
-
};
}
@@ -85,7 +80,7 @@ static bool IsBetterCanonical(const GlobalVariable &A,
return A.hasUnnamedAddr();
}
-unsigned ConstantMerge::getAlignment(GlobalVariable *GV) const {
+static unsigned getAlignment(GlobalVariable *GV) {
unsigned Align = GV->getAlignment();
if (Align)
return Align;