summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-16 01:37:00 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-16 01:37:00 +0000
commitb273d06b63316d03379125d2803b798cfe7c90e6 (patch)
tree96f4aaeceabc9791b59399a923ad8a319368e9de /llvm/lib/Transforms
parent373ee859661b0843fc874dbf24b3e600e64e0b43 (diff)
downloadbcm5719-llvm-b273d06b63316d03379125d2803b798cfe7c90e6.tar.gz
bcm5719-llvm-b273d06b63316d03379125d2803b798cfe7c90e6.zip
DebugInfo: Gut DIScope, DIEnumerator and DISubrange
The only class the still has API left is `DIDescriptor` itself. llvm-svn: 235067
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/AddDiscriminators.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/AddDiscriminators.cpp b/llvm/lib/Transforms/Utils/AddDiscriminators.cpp
index 526dc34d65b..c1cd39abea7 100644
--- a/llvm/lib/Transforms/Utils/AddDiscriminators.cpp
+++ b/llvm/lib/Transforms/Utils/AddDiscriminators.cpp
@@ -193,8 +193,8 @@ bool AddDiscriminators::runOnFunction(Function &F) {
// Create a new lexical scope and compute a new discriminator
// number for it.
StringRef Filename = FirstDIL->getFilename();
- DIScope Scope = FirstDIL->getScope();
- DIFile File = Builder.createFile(Filename, Scope.getDirectory());
+ auto *Scope = FirstDIL->getScope();
+ DIFile File = Builder.createFile(Filename, Scope->getDirectory());
// FIXME: Calculate the discriminator here, based on local information,
// and delete MDLocation::computeNewDiscriminator(). The current
OpenPOWER on IntegriCloud