diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-14 01:35:55 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-14 01:35:55 +0000 |
| commit | b7e221ba5530d2da215a47d7adcecc87e9506d8d (patch) | |
| tree | 398705e25f6f6b6676842637bd3af37820bc137c /llvm/lib/IR/DiagnosticInfo.cpp | |
| parent | 18783cea3fd62ef2cef4020c4c41307201652215 (diff) | |
| download | bcm5719-llvm-b7e221ba5530d2da215a47d7adcecc87e9506d8d.tar.gz bcm5719-llvm-b7e221ba5530d2da215a47d7adcecc87e9506d8d.zip | |
DebugInfo: Gut DILocation
This is along the same lines as r234832, but for `DILocation`. Clean
out all accessors from `DILocation`. Any callers should be using
`MDLocation` directly (e.g., via `operator->()`).
llvm-svn: 234835
Diffstat (limited to 'llvm/lib/IR/DiagnosticInfo.cpp')
| -rw-r--r-- | llvm/lib/IR/DiagnosticInfo.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/IR/DiagnosticInfo.cpp b/llvm/lib/IR/DiagnosticInfo.cpp index d5c8e3b8aa7..91635f67959 100644 --- a/llvm/lib/IR/DiagnosticInfo.cpp +++ b/llvm/lib/IR/DiagnosticInfo.cpp @@ -136,10 +136,9 @@ void DiagnosticInfoOptimizationBase::getLocation(StringRef *Filename, unsigned *Line, unsigned *Column) const { MDLocation *L = getDebugLoc(); - DILocation DIL = L; - *Filename = DIL.getFilename(); - *Line = DIL.getLineNumber(); - *Column = DIL.getColumnNumber(); + *Filename = L->getFilename(); + *Line = L->getLine(); + *Column = L->getColumn(); } const std::string DiagnosticInfoOptimizationBase::getLocationStr() const { |

