[opaque pointer type] Avoid using PointerType::getElementType when parsing IR
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 6 Apr 2015 20:59:48 +0000 (20:59 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 6 Apr 2015 20:59:48 +0000 (20:59 +0000)
commit15d9a4c49c3198d77ea74e03f71133737d2e91da
tree5563651a21ceb3270fd5567d455ce15c4e16b77c
parentc437888f5af7ab582bfb10a2159c06e07b7cbe57
[opaque pointer type] Avoid using PointerType::getElementType when parsing IR

A few calls are left in for error checking - but I'm commenting those
out & trying to build some IR tests (aiming for Argument Promotion to
start with). When I get any of these tests passing I may add flag to
disable the checking so I can add tests that pass with the assertion in
place.

llvm-svn: 234206
llvm/include/llvm/IR/Function.h
llvm/include/llvm/IR/Instructions.h
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/IR/Function.cpp
llvm/lib/IR/Instructions.cpp
llvm/lib/IR/Verifier.cpp