| 480 | |
| 481 | |
| 482 | std::string getPortableFormatDescriptor(Type const* Ty) |
| 483 | { |
| 484 | std::string Ret; |
| 485 | #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ |
| 486 | Ret = "<"; |
| 487 | #elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ |
| 488 | Ret = ">"; |
| 489 | #else |
| 490 | #error Unsupported endianess! |
| 491 | #endif |
| 492 | Ret += getFormatDescriptorImpl(Ty, getBTyPortableFormatDescriptor, getPtrPortableFormatDescriptor); |
| 493 | return Ret; |
| 494 | } |
| 495 | |
| 496 | std::unique_ptr<CObj> CObj::cast(QualType To) const |
| 497 | { |
nothing calls this directly
no test coverage detected