diff options
| author | John McCall <rjmccall@apple.com> | 2010-05-06 09:25:57 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-05-06 09:25:57 +0000 |
| commit | 0086190d5858b8dab624827393af49223963af52 (patch) | |
| tree | 50dfb54586fa00b36858f898fd0f2cddb93a4d35 /clang/lib/AST/Decl.cpp | |
| parent | 31b0b467791163212b5e0abc42fc6a8467d4677e (diff) | |
| download | bcm5719-llvm-0086190d5858b8dab624827393af49223963af52.tar.gz bcm5719-llvm-0086190d5858b8dab624827393af49223963af52.zip | |
Push TypeSourceInfo::getTypeLoc() into a header file so that it's
inlineable. That header file has to be TypeLoc.h, which means that
TypeLoc.h needs to depend on Decl.h because TypeSourceInfo doesn't
have its own header. That could be remedied, though.
llvm-svn: 103176
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
| -rw-r--r-- | clang/lib/AST/Decl.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp index 0336ca1eaac..25f5fb77973 100644 --- a/clang/lib/AST/Decl.cpp +++ b/clang/lib/AST/Decl.cpp @@ -28,11 +28,6 @@ using namespace clang; -/// \brief Return the TypeLoc wrapper for the type source info. -TypeLoc TypeSourceInfo::getTypeLoc() const { - return TypeLoc(Ty, (void*)(this + 1)); -} - //===----------------------------------------------------------------------===// // NamedDecl Implementation //===----------------------------------------------------------------------===// |

