Hi Eric, Would it be preferable to add a virtual method - getTargetLoweringObjectFile() to TargetMachine ? All targets to could override this. Thanks Aditya http://reviews.llvm.org/D5850