[cfe-commits] r131558 - /cfe/trunk/lib/CodeGen/TargetInfo.cpp

Roman Divacky rdivacky at freebsd.org
Wed May 18 12:36:54 PDT 2011


Author: rdivacky
Date: Wed May 18 14:36:54 2011
New Revision: 131558

URL: http://llvm.org/viewvc/llvm-project?rev=131558&view=rev
Log:
Add ARMTargetCodeGenInfo::initDwarfEHRegSizeTable() defining 16 32bit regs.


Modified:
    cfe/trunk/lib/CodeGen/TargetInfo.cpp

Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=131558&r1=131557&r2=131558&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Wed May 18 14:36:54 2011
@@ -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;
+  }
+
+
 };
 
 }





More information about the cfe-commits mailing list