[cfe-commits] [PATCH]: arm definition of initDwarfEHRegSizeTable
Eli Friedman
eli.friedman at gmail.com
Wed May 18 10:25:16 PDT 2011
On Wed, May 18, 2011 at 9:40 AM, Roman Divacky <rdivacky at freebsd.org> wrote:
> OK to commit? It defines 16 registers (0 - 15) to be 32bit.
> This is necessary for __builtin_init_dwarf_reg_size_table() no arm.
>
>
> Index: lib/CodeGen/TargetInfo.cpp
> ===================================================================
> --- lib/CodeGen/TargetInfo.cpp (revision 131534)
> +++ lib/CodeGen/TargetInfo.cpp (working copy)
> @@ -2279,6 +2279,22 @@
> int getDwarfEHStackPointer(CodeGen::CodeGenModule &M) const {
> return 13;
> }
> +
> + bool initDwarfEHRegSizeTable(CodeGen::CodeGenFunction &CGF,
> + llvm::Value *Address) const {
> + CodeGen::CGBuilderTy &Builder = CGF.Builder;
> + llvm::LLVMContext &Context = CGF.getLLVMContext();
> +
> + const llvm::IntegerType *i8 = llvm::Type::getInt8Ty(Context);
> + llvm::Value *Four8 = llvm::ConstantInt::get(i8, 4);
> +
> + // 0-15 are the 16 integer registers.
> + AssignToArrayRange(Builder, Address, Four8, 0, 15);
> +
> + return false;
> + }
> +
> +
> };
>
> }
Is this the same thing that gcc generates? I can't tell because the
ARM gcc that I have ICE's on calls to
__builtin_init_dwarf_reg_size_table().
-Eli
More information about the cfe-commits
mailing list