mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-15 04:20:27 +00:00
Fix this to use the right block ID
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36550 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1a9df8eee0
commit
01b27458a1
@ -485,8 +485,6 @@ static void WriteInstruction(const Instruction &I, ValueEnumerator &VE,
|
|||||||
BitstreamWriter &Stream,
|
BitstreamWriter &Stream,
|
||||||
SmallVector<unsigned, 64> &Vals) {
|
SmallVector<unsigned, 64> &Vals) {
|
||||||
return; // FIXME: REMOVE
|
return; // FIXME: REMOVE
|
||||||
|
|
||||||
|
|
||||||
unsigned Code = 0;
|
unsigned Code = 0;
|
||||||
unsigned AbbrevToUse = 0;
|
unsigned AbbrevToUse = 0;
|
||||||
switch (I.getOpcode()) {
|
switch (I.getOpcode()) {
|
||||||
@ -524,7 +522,7 @@ static void WriteInstruction(const Instruction &I, ValueEnumerator &VE,
|
|||||||
/// WriteFunction - Emit a function body to the module stream.
|
/// WriteFunction - Emit a function body to the module stream.
|
||||||
static void WriteFunction(const Function &F, ValueEnumerator &VE,
|
static void WriteFunction(const Function &F, ValueEnumerator &VE,
|
||||||
BitstreamWriter &Stream) {
|
BitstreamWriter &Stream) {
|
||||||
Stream.EnterSubblock(bitc::TYPE_SYMTAB_BLOCK_ID, 3);
|
Stream.EnterSubblock(bitc::FUNCTION_BLOCK_ID, 3);
|
||||||
VE.incorporateFunction(F);
|
VE.incorporateFunction(F);
|
||||||
|
|
||||||
SmallVector<unsigned, 64> Vals;
|
SmallVector<unsigned, 64> Vals;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user