Fix pr18515.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 22 Jan 2014 20:20:52 +0000 (20:20 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 22 Jan 2014 20:20:52 +0000 (20:20 +0000)
commitff16685a80342552aa767ec22f18d986c832bcb6
treecc54b9f9791b2bf95e2bf08a321470592f5e2047
parent8b594ba8515bf443ae139956b273eebef04f8272
Fix pr18515.

My understanding (from reading just the llvm code) is that
* most ppc cpus have a "sync n" instruction and an msync alias that is "sync 0".
* "book e" cpus instead have a msync instruction and not the more
general "sync n"

This patch reflects that in the .td files, allowing a single codepath for
asm ond obj streamer and incidentelly fixes a crash when EmitRawText was
called on a obj streamer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199832 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCAsmPrinter.cpp
lib/Target/PowerPC/PPCInstrInfo.td