The code looks OK to me, although the commit message should say what it actually does (i.e., add an AsmBackend for X32 which uses ELF32 with x86_64). This is very minimal though; do you have a more complete set of patches available for X32 so we can see the bigger picture of where this is going? http://reviews.llvm.org/D4181