[llvm] r268476 - [IPO/ConstantMerge] Convert to static function, to facilitate transition to the new PM.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 20:21:21 PDT 2016
Author: davide
Date: Tue May 3 22:21:20 2016
New Revision: 268476
URL: http://llvm.org/viewvc/llvm-project?rev=268476&view=rev
Log:
[IPO/ConstantMerge] Convert to static function, to facilitate transition to the new PM.
Modified:
llvm/trunk/lib/Transforms/IPO/ConstantMerge.cpp
Modified: llvm/trunk/lib/Transforms/IPO/ConstantMerge.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/ConstantMerge.cpp?rev=268476&r1=268475&r2=268476&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/ConstantMerge.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/ConstantMerge.cpp Tue May 3 22:21:20 2016
@@ -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 Glob
return A.hasUnnamedAddr();
}
-unsigned ConstantMerge::getAlignment(GlobalVariable *GV) const {
+static unsigned getAlignment(GlobalVariable *GV) {
unsigned Align = GV->getAlignment();
if (Align)
return Align;
More information about the llvm-commits
mailing list