diff options
| author | Zachary Turner <zturner@google.com> | 2015-02-12 21:09:24 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2015-02-12 21:09:24 +0000 |
| commit | c074de041b92af6a8279ea84a3675ab79579ec20 (patch) | |
| tree | 6dba14e46c1e40f84304087e8ded45dfa6ac04f6 /llvm/lib/DebugInfo/PDB/PDBExtras.cpp | |
| parent | cf7d164ec1c85e9f4d7a1508486342b67828e408 (diff) | |
| download | bcm5719-llvm-c074de041b92af6a8279ea84a3675ab79579ec20.tar.gz bcm5719-llvm-c074de041b92af6a8279ea84a3675ab79579ec20.zip | |
Add concrete type overloads to PDBSymbol::findChildren().
Frequently you only want to iterate over children of a specific
type (e.g. functions). Previously you would get back a generic
interface that allowed iteration over the base symbol type,
which you would have to dyn_cast<> each one of. With this patch,
we allow the user to specify the concrete type as a template
parameter, and it will return an iterator which returns instances
of the concrete type directly.
llvm-svn: 228960
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/PDBExtras.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/PDB/PDBExtras.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/PDBExtras.cpp b/llvm/lib/DebugInfo/PDB/PDBExtras.cpp index e7acebc0005..28870870de5 100644 --- a/llvm/lib/DebugInfo/PDB/PDBExtras.cpp +++ b/llvm/lib/DebugInfo/PDB/PDBExtras.cpp @@ -75,7 +75,7 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const PDB_RegisterId &Reg) { CASE_OUTPUT_ENUM_CLASS_NAME(PDB_RegisterId, R14, OS) CASE_OUTPUT_ENUM_CLASS_NAME(PDB_RegisterId, R15, OS) default: - OS << "Unknown"; + OS << static_cast<int>(Reg); } return OS; } |

