Remove some dead code.
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 4 Oct 2013 23:37:30 +0000 (23:37 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 4 Oct 2013 23:37:30 +0000 (23:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192000 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DIE.h
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp

index 11625236e168c20648a429eb1329d96c2267ffd8..3f89aea02f785cff278a010c0d103fbc97892fe3 100644 (file)
@@ -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; }
 
index 554e7f66f57788aa366172ff20fc5d40e16ab050..4969f833bcc34917579bf1a1f2274e1052be77e7 100644 (file)
@@ -920,11 +920,6 @@ void CompileUnit::constructTypeDIE(DIE &Buffer, DIDerivedType DTy) {
   // 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.