diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-26 08:01:45 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-26 08:01:45 +0000 |
| commit | 4acad5b092991ec2839c9c8b93cfec770de208ca (patch) | |
| tree | 2aa6bb27a5877c3a238c0139be20ab2fc936d471 | |
| parent | 4cdfcae75d7d9eddef079ceff7e6f53a35a89948 (diff) | |
| download | bcm5719-llvm-4acad5b092991ec2839c9c8b93cfec770de208ca.tar.gz bcm5719-llvm-4acad5b092991ec2839c9c8b93cfec770de208ca.zip | |
Remove SourceManager::getLocation().
It's not descriptive enough and it's just a call of translateFileLineCol()
followed by a call to getMacroArgExpandedLocation(), which is better to be
called explicitly since it has a certain cost and is not always required.
llvm-svn: 140520
| -rw-r--r-- | clang/include/clang/Basic/SourceManager.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/include/clang/Basic/SourceManager.h b/clang/include/clang/Basic/SourceManager.h index 9178447a72f..2c6b8cde18d 100644 --- a/clang/include/clang/Basic/SourceManager.h +++ b/clang/include/clang/Basic/SourceManager.h @@ -1107,20 +1107,6 @@ public: /// /// If the source file is included multiple times, the source location will /// be based upon the first inclusion. - /// - /// If the location points inside a function macro argument, the returned - /// location will be the macro location in which the argument was expanded. - /// \sa getMacroArgExpandedLocation - SourceLocation getLocation(const FileEntry *SourceFile, - unsigned Line, unsigned Col) { - SourceLocation Loc = translateFileLineCol(SourceFile, Line, Col); - return getMacroArgExpandedLocation(Loc); - } - - /// \brief Get the source location for the given file:line:col triplet. - /// - /// If the source file is included multiple times, the source location will - /// be based upon the first inclusion. SourceLocation translateFileLineCol(const FileEntry *SourceFile, unsigned Line, unsigned Col) const; |

