[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)
commitaf1023588ed0de9c64f7e96922eb147995fad6d5
treec8eb6fd3ad94f8f7bbf3a11f3c038cf17f6294f7
parent1ea24954c6d19e3788434ec3fb0ae5a7d3413517
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234206 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Function.h
include/llvm/IR/Instructions.h
lib/AsmParser/LLParser.cpp
lib/IR/Function.cpp
lib/IR/Instructions.cpp
lib/IR/Verifier.cpp