summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DIE.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-08-07 01:18:33 +0000
committerEric Christopher <echristo@gmail.com>2013-08-07 01:18:33 +0000
commitb7669139e6309679acbe16ca26f1b1a2fdd91268 (patch)
tree24bde9978847230d86929c1e2b72d42980474b74 /lib/CodeGen/AsmPrinter/DIE.h
parent028f3478a510ef0855abc891237882b3c6123671 (diff)
downloadllvm-b7669139e6309679acbe16ca26f1b1a2fdd91268.tar.gz
llvm-b7669139e6309679acbe16ca26f1b1a2fdd91268.tar.bz2
llvm-b7669139e6309679acbe16ca26f1b1a2fdd91268.tar.xz
Add a way to grab a particular attribute out of a DIE.
Use it when we're looking for a string in particular. Update comments as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187844 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DIE.h')
-rw-r--r--lib/CodeGen/AsmPrinter/DIE.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.h b/lib/CodeGen/AsmPrinter/DIE.h
index e2f49d64be..bfd7d1daee 100644
--- a/lib/CodeGen/AsmPrinter/DIE.h
+++ b/lib/CodeGen/AsmPrinter/DIE.h
@@ -175,6 +175,10 @@ namespace llvm {
Child->Parent = this;
}
+ /// findAttribute - Find a value in the DIE with the attribute given, returns NULL
+ /// if no such attribute exists.
+ DIEValue *findAttribute(unsigned Attribute);
+
#ifndef NDEBUG
void print(raw_ostream &O, unsigned IndentCount = 0) const;
void dump();