diff options
| author | John Brawn <john.brawn@arm.com> | 2015-08-07 10:56:21 +0000 |
|---|---|---|
| committer | John Brawn <john.brawn@arm.com> | 2015-08-07 10:56:21 +0000 |
| commit | 64e5a6679499e46d465b321eaca96407bbb446b3 (patch) | |
| tree | 8c36292d2603c6d90ee850362b6d018327b99dfe /llvm/lib/CodeGen/AsmPrinter | |
| parent | ae55b483d4cc8274e7880cea3ba4281bee124fba (diff) | |
| download | bcm5719-llvm-64e5a6679499e46d465b321eaca96407bbb446b3.tar.gz bcm5719-llvm-64e5a6679499e46d465b321eaca96407bbb446b3.zip | |
Revert "Make global aliases have symbol size equal to their type"
This reverts r242520, as it caused pr24379. Also removes part of the test added
by r243874 that checks the size of alias symbols.
llvm-svn: 244313
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index f736f023c98..0ea2c66757a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1184,16 +1184,6 @@ bool AsmPrinter::doFinalization(Module &M) { // Emit the directives as assignments aka .set: OutStreamer->EmitAssignment(Name, lowerConstant(Alias.getAliasee())); - - // Set the size of the alias symbol if we can, as otherwise the alias gets - // the size of the aliasee which may not be correct e.g. if the alias is of - // a member of a struct. - if (MAI->hasDotTypeDotSizeDirective() && Alias.getValueType()->isSized()) { - const DataLayout &DL = M.getDataLayout(); - uint64_t Size = DL.getTypeAllocSize(Alias.getValueType()); - OutStreamer->emitELFSize(cast<MCSymbolELF>(Name), - MCConstantExpr::create(Size, OutContext)); - } } GCModuleInfo *MI = getAnalysisIfAvailable<GCModuleInfo>(); |

