diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-10-02 21:56:57 +0000 | 
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-10-02 21:56:57 +0000 | 
| commit | 571f97bd9055738e88c982564c06ba6d48ac7f9f (patch) | |
| tree | 8853f1ba2183cc4f7d5c8fb454188b705e445e1a /llvm/lib/CodeGen/AsmPrinter | |
| parent | 02b418a875b630be83fad340e3a213701904617c (diff) | |
| download | bcm5719-llvm-571f97bd9055738e88c982564c06ba6d48ac7f9f.tar.gz bcm5719-llvm-571f97bd9055738e88c982564c06ba6d48ac7f9f.zip | |
DI: Fold constant arguments into a single MDString
This patch addresses the first stage of PR17891 by folding constant
arguments together into a single MDString.  Integers are stringified and
a `\0` character is used as a separator.
Part of PR17891.
Note: I've attached my testcases upgrade scripts to the PR.  If I've
just broken your out-of-tree testcases, they might help.
llvm-svn: 218914
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index b19b576cdf3..902dafa6f46 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -1713,7 +1713,7 @@ DIE *DwarfCompileUnit::getOrCreateGlobalVariableDIE(DIGlobalVariable GV) {      // it is not a static member.      if (!IsStaticMember)        addConstantValue(*VariableDIE, CI, GTy); -  } else if (const ConstantExpr *CE = getMergedGlobalExpr(GV->getOperand(11))) { +  } else if (const ConstantExpr *CE = getMergedGlobalExpr(GV.getConstant())) {      addToAccelTable = true;      // GV is a merged global.      DIELoc *Loc = new (DIEValueAllocator) DIELoc(); | 

