[llvm] r202920 - Use dwarf::Attribute instead of a bare uint16_t.
Eric Christopher
echristo at gmail.com
Tue Mar 4 17:10:59 PST 2014
Author: echristo
Date: Tue Mar 4 19:10:59 2014
New Revision: 202920
URL: http://llvm.org/viewvc/llvm-project?rev=202920&view=rev
Log:
Use dwarf::Attribute instead of a bare uint16_t.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp
llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp?rev=202920&r1=202919&r2=202920&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp Tue Mar 4 19:10:59 2014
@@ -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();
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h?rev=202920&r1=202919&r2=202920&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h Tue Mar 4 19:10:59 2014
@@ -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;
More information about the llvm-commits
mailing list