From 33a9132fd45f30a1ff5b68018f8509dcc1d0e29e Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 5 Mar 2014 01:10:59 +0000 Subject: [PATCH] Use dwarf::Attribute instead of a bare uint16_t. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202920 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DIE.cpp | 2 +- lib/CodeGen/AsmPrinter/DIE.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/DIE.cpp b/lib/CodeGen/AsmPrinter/DIE.cpp index 4722d2b5501..c989ce75abf 100644 --- a/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/lib/CodeGen/AsmPrinter/DIE.cpp @@ -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 &Values = getValues(); const DIEAbbrev &Abbrevs = getAbbrev(); diff --git a/lib/CodeGen/AsmPrinter/DIE.h b/lib/CodeGen/AsmPrinter/DIE.h index fa23fa889e3..b04adf53deb 100644 --- a/lib/CodeGen/AsmPrinter/DIE.h +++ b/lib/CodeGen/AsmPrinter/DIE.h @@ -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;