Fix a FIXME by making GlobalVariable::getInitializer() return a

const Constant *.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133400 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jay Foad
2011-06-19 18:37:11 +00:00
parent 9cfcc6c1e1
commit 7d715dfe6d
9 changed files with 17 additions and 17 deletions

View File

@@ -114,7 +114,7 @@ void XCoreAsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) {
MCSymbol *GVSym = Mang->getSymbol(GV);
Constant *C = GV->getInitializer();
const Constant *C = GV->getInitializer();
unsigned Align = (unsigned)TD->getPreferredTypeAlignmentShift(C->getType());
// Mark the start of the global