diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-20 22:10:08 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-20 22:10:08 +0000 |
commit | 2fbe13540a906cdb10a26889ab5c181ce242f563 (patch) | |
tree | 71ee935b52af16fc0b4b6e2cf4efd8c4985498bf /llvm/lib/Transforms/Utils/AddDiscriminators.cpp | |
parent | a7fbcbfe008e5796a0e51b830dd3034478bc47c4 (diff) | |
download | bcm5719-llvm-2fbe13540a906cdb10a26889ab5c181ce242f563.tar.gz bcm5719-llvm-2fbe13540a906cdb10a26889ab5c181ce242f563.zip |
DebugInfo: Delete subclasses of DIScope
Delete subclasses of (the already defunct) `DIScope`, updating users to
use the raw pointers from the `Metadata` hierarchy directly.
llvm-svn: 235356
Diffstat (limited to 'llvm/lib/Transforms/Utils/AddDiscriminators.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/AddDiscriminators.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/AddDiscriminators.cpp b/llvm/lib/Transforms/Utils/AddDiscriminators.cpp index c1cd39abea7..dd88f3d0a26 100644 --- a/llvm/lib/Transforms/Utils/AddDiscriminators.cpp +++ b/llvm/lib/Transforms/Utils/AddDiscriminators.cpp @@ -194,7 +194,7 @@ bool AddDiscriminators::runOnFunction(Function &F) { // number for it. StringRef Filename = FirstDIL->getFilename(); auto *Scope = FirstDIL->getScope(); - DIFile File = Builder.createFile(Filename, Scope->getDirectory()); + auto *File = Builder.createFile(Filename, Scope->getDirectory()); // FIXME: Calculate the discriminator here, based on local information, // and delete MDLocation::computeNewDiscriminator(). The current @@ -202,7 +202,7 @@ bool AddDiscriminators::runOnFunction(Function &F) { // same context. All we really need is to discriminate between // FirstDIL and LastDIL -- a local map would suffice. unsigned Discriminator = FirstDIL->computeNewDiscriminator(); - DILexicalBlockFile NewScope = + auto *NewScope = Builder.createLexicalBlockFile(Scope, File, Discriminator); auto *NewDIL = MDLocation::get(Ctx, FirstDIL->getLine(), FirstDIL->getColumn(), |