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/bindings | |
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/bindings')
-rw-r--r-- | llvm/bindings/go/llvm/DIBuilderBindings.cpp | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/llvm/bindings/go/llvm/DIBuilderBindings.cpp b/llvm/bindings/go/llvm/DIBuilderBindings.cpp index cd538e363a5..8d62a96d2f3 100644 --- a/llvm/bindings/go/llvm/DIBuilderBindings.cpp +++ b/llvm/bindings/go/llvm/DIBuilderBindings.cpp @@ -40,16 +40,14 @@ LLVMMetadataRef LLVMDIBuilderCreateCompileUnit(LLVMDIBuilderRef Dref, int Optimized, const char *Flags, unsigned RuntimeVersion) { DIBuilder *D = unwrap(Dref); - DICompileUnit CU = D->createCompileUnit(Lang, File, Dir, Producer, Optimized, - Flags, RuntimeVersion); - return wrap(CU); + return wrap(D->createCompileUnit(Lang, File, Dir, Producer, Optimized, Flags, + RuntimeVersion)); } LLVMMetadataRef LLVMDIBuilderCreateFile(LLVMDIBuilderRef Dref, const char *File, const char *Dir) { DIBuilder *D = unwrap(Dref); - DIFile F = D->createFile(File, Dir); - return wrap(F); + return wrap(D->createFile(File, Dir)); } LLVMMetadataRef LLVMDIBuilderCreateLexicalBlock(LLVMDIBuilderRef Dref, @@ -68,9 +66,8 @@ LLVMMetadataRef LLVMDIBuilderCreateLexicalBlockFile(LLVMDIBuilderRef Dref, LLVMMetadataRef File, unsigned Discriminator) { DIBuilder *D = unwrap(Dref); - DILexicalBlockFile LBF = D->createLexicalBlockFile( - unwrap<MDLocalScope>(Scope), unwrap<MDFile>(File), Discriminator); - return wrap(LBF); + return wrap(D->createLexicalBlockFile(unwrap<MDLocalScope>(Scope), + unwrap<MDFile>(File), Discriminator)); } LLVMMetadataRef LLVMDIBuilderCreateFunction( @@ -79,12 +76,11 @@ LLVMMetadataRef LLVMDIBuilderCreateFunction( LLVMMetadataRef CompositeType, int IsLocalToUnit, int IsDefinition, unsigned ScopeLine, unsigned Flags, int IsOptimized, LLVMValueRef Func) { DIBuilder *D = unwrap(Dref); - DISubprogram SP = D->createFunction( - unwrap<MDScope>(Scope), Name, LinkageName, - File ? unwrap<MDFile>(File) : nullptr, Line, - unwrap<MDSubroutineType>(CompositeType), IsLocalToUnit, IsDefinition, - ScopeLine, Flags, IsOptimized, unwrap<Function>(Func)); - return wrap(SP); + return wrap(D->createFunction(unwrap<MDScope>(Scope), Name, LinkageName, + File ? unwrap<MDFile>(File) : nullptr, Line, + unwrap<MDSubroutineType>(CompositeType), + IsLocalToUnit, IsDefinition, ScopeLine, Flags, + IsOptimized, unwrap<Function>(Func))); } LLVMMetadataRef LLVMDIBuilderCreateLocalVariable( |