зеркало из https://github.com/microsoft/clang-1.git
Set flag for -fobjc-gc in IMAGE_INFO variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65387 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
d6f7e9dccd
Коммит
067986e534
|
@ -3428,7 +3428,11 @@ void CGObjCNonFragileABIMac::FinishNonFragileABIModule() {
|
||||||
// FIXME. flags can be 0 | 1 | 2 | 6. For now just use 0
|
// FIXME. flags can be 0 | 1 | 2 | 6. For now just use 0
|
||||||
std::vector<llvm::Constant*> Values(2);
|
std::vector<llvm::Constant*> Values(2);
|
||||||
Values[0] = llvm::ConstantInt::get(ObjCTypes.IntTy, 0);
|
Values[0] = llvm::ConstantInt::get(ObjCTypes.IntTy, 0);
|
||||||
Values[1] = llvm::ConstantInt::get(ObjCTypes.IntTy, 0);
|
unsigned int flags = 0;
|
||||||
|
// FIXME -fobjc-gc-only flags is 6.
|
||||||
|
if (CGM.getContext().getLangOptions().getGCMode() != LangOptions::NonGC)
|
||||||
|
flags |= 2;
|
||||||
|
Values[1] = llvm::ConstantInt::get(ObjCTypes.IntTy, flags);
|
||||||
llvm::Constant* Init = llvm::ConstantArray::get(
|
llvm::Constant* Init = llvm::ConstantArray::get(
|
||||||
llvm::ArrayType::get(ObjCTypes.IntTy, 2),
|
llvm::ArrayType::get(ObjCTypes.IntTy, 2),
|
||||||
Values);
|
Values);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче