Debug Info: define a DIRef template.
authorManman Ren <manman.ren@gmail.com>
Tue, 10 Sep 2013 18:30:07 +0000 (18:30 +0000)
committerManman Ren <manman.ren@gmail.com>
Tue, 10 Sep 2013 18:30:07 +0000 (18:30 +0000)
commit2c46deb1d07f4588ee70059cdd4c7145f81bc8e8
treef1811a6df419c56fb956f333553be760e10a82e8
parent1039e106d095979b3707bb27cfa765cd2c0f3b54
Debug Info: define a DIRef template.

Specialize the constructors for DIRef<DIScope> and DIRef<DIType> to make sure
the Value is indeed a scope ref and a type ref.

Use DIScopeRef for DIScope::getContext and DIType::getContext and use DITypeRef
for getContainingType and getClassType.

DIScope::generateRef now returns a DIScopeRef instead of a "Value *" for
readability and type safety.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190418 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
lib/IR/DebugInfo.cpp