summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-03-05 01:10:59 +0000
committerEric Christopher <echristo@gmail.com>2014-03-05 01:10:59 +0000
commit33a9132fd45f30a1ff5b68018f8509dcc1d0e29e (patch)
treec51ed3a05e069aa57007f987c3f4ceff86d8eeb7 /lib
parentd3190ef439b4d70c533c791002b1f6a5d058d817 (diff)
downloadllvm-33a9132fd45f30a1ff5b68018f8509dcc1d0e29e.tar.gz
llvm-33a9132fd45f30a1ff5b68018f8509dcc1d0e29e.tar.bz2
llvm-33a9132fd45f30a1ff5b68018f8509dcc1d0e29e.tar.xz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/DIE.cpp2
-rw-r--r--lib/CodeGen/AsmPrinter/DIE.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.cpp b/lib/CodeGen/AsmPrinter/DIE.cpp
index 4722d2b550..c989ce75ab 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<DIEValue *> &Values = getValues();
const DIEAbbrev &Abbrevs = getAbbrev();
diff --git a/lib/CodeGen/AsmPrinter/DIE.h b/lib/CodeGen/AsmPrinter/DIE.h
index fa23fa889e..b04adf53de 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;