[llvm] r192000 - Remove some dead code.
David Blaikie
dblaikie at gmail.com
Fri Oct 4 16:37:30 PDT 2013
Author: dblaikie
Date: Fri Oct 4 18:37:30 2013
New Revision: 192000
URL: http://llvm.org/viewvc/llvm-project?rev=192000&view=rev
Log:
Remove some dead code.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h?rev=192000&r1=191999&r2=192000&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h Fri Oct 4 18:37:30 2013
@@ -78,7 +78,6 @@ namespace llvm {
unsigned getNumber() const { return Number; }
uint16_t getChildrenFlag() const { return ChildrenFlag; }
const SmallVectorImpl<DIEAbbrevData> &getData() const { return Data; }
- void setTag(uint16_t T) { Tag = T; }
void setChildrenFlag(uint16_t CF) { ChildrenFlag = CF; }
void setNumber(unsigned N) { Number = N; }
@@ -149,7 +148,6 @@ namespace llvm {
const std::vector<DIE *> &getChildren() const { return Children; }
const SmallVectorImpl<DIEValue*> &getValues() const { return Values; }
DIE *getParent() const { return Parent; }
- void setTag(uint16_t Tag) { Abbrev.setTag(Tag); }
void setOffset(unsigned O) { Offset = O; }
void setSize(unsigned S) { Size = S; }
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=192000&r1=191999&r2=192000&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp Fri Oct 4 18:37:30 2013
@@ -920,11 +920,6 @@ void CompileUnit::constructTypeDIE(DIE &
// Get core information.
StringRef Name = DTy.getName();
uint64_t Size = DTy.getSizeInBits() >> 3;
-
- // FIXME - Workaround for templates.
- if (Buffer.getTag() == dwarf::DW_TAG_inheritance)
- Buffer.setTag(dwarf::DW_TAG_reference_type);
-
uint16_t Tag = Buffer.getTag();
// Map to main type, void will not have a type.
More information about the llvm-commits
mailing list