search for: m_tm

Displaying 1 result from an estimated 1 matches for "m_tm".

Did you mean: m_ti
2004 Jun 19
1
[LLVMdev] The size of char
To figure out the size of data varaibles for my backend, I tries this code stolen from X86 backend: const TargetData& TD = m_tm.getTargetData(); unsigned size = TD.getTypeSize(initializer->getType()); However, the getTypeInfo function in TargetData.cpp contains this: case Type::VoidTyID: case Type::BoolTyID: case Type::UByteTyID: case Type::SByteTyID: Size = 1; Alignment = TD->getByteAlignment();...