Change DIBuilder::createImportedDeclaration from taking a DIScope to a DIDescriptor.
authorFrederic Riss <friss@apple.com>
Thu, 6 Nov 2014 17:46:55 +0000 (17:46 +0000)
committerFrederic Riss <friss@apple.com>
Thu, 6 Nov 2014 17:46:55 +0000 (17:46 +0000)
commit6df2a3be33099024fbb31d8e05e364d31ae5aaf1
treef214c162ee3406f4387f31f049bb145f7eefecb2
parentd67fc42d223aa7df9dec3b632a6cb7a3316fe15c
Change DIBuilder::createImportedDeclaration from taking a DIScope to a DIDescriptor.

Imported declarations can be DIGlobalVariables which aren't a DIScope. Today
clang (unknowingly I believe) shoehorns these into a DIScope and it all works
just because we never access the fields.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221466 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DIBuilder.h
lib/IR/DIBuilder.cpp