Use dwarf::Attribute instead of a bare uint16_t.
authorEric Christopher <echristo@gmail.com>
Wed, 5 Mar 2014 01:10:59 +0000 (01:10 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 5 Mar 2014 01:10:59 +0000 (01:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202920 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 4722d2b5501161198492d537256eb233d07722d1..c989ce75abf1bd33fc552564c8ff963f97917f4d 100644 (file)
@@ -134,7 +134,7 @@ const DIE *DIE::getUnitOrNull() const {
   return NULL;
 }
 
-DIEValue *DIE::findAttribute(uint16_t Attribute) const {
+DIEValue *DIE::findAttribute(dwarf::Attribute Attribute) const {
   const SmallVectorImpl<DIEValue *> &Values = getValues();
   const DIEAbbrev &Abbrevs = getAbbrev();
 
index fa23fa889e3f069c35ec6086d7f9191c4c714bfc..b04adf53deb8e2359182f8fb2d86798ff1c68642 100644 (file)
@@ -175,7 +175,7 @@ public:
 
   /// findAttribute - Find a value in the DIE with the attribute given,
   /// returns NULL if no such attribute exists.
-  DIEValue *findAttribute(uint16_t Attribute) const;
+  DIEValue *findAttribute(dwarf::Attribute Attribute) const;
 
 #ifndef NDEBUG
   void print(raw_ostream &O, unsigned IndentCount = 0) const;