summaryrefslogtreecommitdiff
path: root/assembler/main.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-01-30 17:09:17 +0000
committerDamien Lespiau <damien.lespiau@intel.com>2013-03-04 15:54:41 +0000
commit9b78f74f23aee082fe6e2e5686b6325b1f942288 (patch)
treec0698f0a9555a266c9ce38eebbc0444eccd0fec7 /assembler/main.c
parentf6e9052e8d62606c3a89c2e6f138a66a003854ae (diff)
assembler: Move struct relocation out of relocatable instructions
Now that all instructions (relocatable or not) are struct brw_program_instructions, this means we can move the relocation specific information out the "relocatable instruction" structure. This will allow us to share the relocation information between different types of instructions. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler/main.c')
-rw-r--r--assembler/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/assembler/main.c b/assembler/main.c
index 8579f963..f1d78d07 100644
--- a/assembler/main.c
+++ b/assembler/main.c
@@ -437,8 +437,8 @@ int main(int argc, char **argv)
}
for (entry = compiled_program.first; entry; entry = entry->next) {
- struct relocatable_instruction *reloc = &entry->insn.reloc;
- struct brw_instruction *inst = &reloc->gen;
+ struct relocation *reloc = &entry->reloc;
+ struct brw_instruction *inst = &entry->insn.gen;
if (!is_relocatable(entry))
continue;