Allow OpUndef appearing in the type and global variable section.
authorLei Zhang <antiagainst@google.com>
Fri, 12 Aug 2016 18:59:56 +0000 (14:59 -0400)
committerLei Zhang <antiagainst@google.com>
Mon, 15 Aug 2016 14:44:14 +0000 (10:44 -0400)
commit097ff25ea77a0b009efb2c1ff93f6decf154338d
treea3c5cf24fe496df06e448c9ac1aa610eaa15e7d3
parentc814911904189cacc799c5e41215d6fe6d14a732
Allow OpUndef appearing in the type and global variable section.

Also clean up API functions for adding instructions into the
type and global values section.
source/opt/ir_loader.cpp
source/opt/module.h
test/opt/test_ir_loader.cpp