diff options
Diffstat (limited to 'clang/AST/Decl.cpp')
| -rw-r--r-- | clang/AST/Decl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/AST/Decl.cpp b/clang/AST/Decl.cpp index db3d632bdeb..73ee105271d 100644 --- a/clang/AST/Decl.cpp +++ b/clang/AST/Decl.cpp @@ -12,9 +12,14 @@ //===----------------------------------------------------------------------===// #include "clang/AST/Decl.h" +#include "clang/Lex/IdentifierTable.h" using namespace llvm; using namespace clang; // Out-of-line virtual method providing a home for Decl. Decl::~Decl() { } + +const char *Decl::getName() const { + return getIdentifier()->getName(); +} |

