diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-08-21 02:24:36 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-08-21 02:24:36 +0000 |
| commit | 0381634a61fa2fa762de92326936c583acb5d703 (patch) | |
| tree | 388086c1752242f32cef63ead12744469697cde7 /clang/lib/CodeGen/CodeGenFunction.h | |
| parent | 0b76a2c21f18e78c47f2eef92256debc3a035e54 (diff) | |
| download | bcm5719-llvm-0381634a61fa2fa762de92326936c583acb5d703.tar.gz bcm5719-llvm-0381634a61fa2fa762de92326936c583acb5d703.zip | |
IRgen: Change Emit{Load,Store}OfScalar to take a required Alignment argument and
update callers as best I can.
- This is a work in progress, our alignment handling is very horrible / sketchy -- I am just aiming for monotonic improvement.
- Serious review appreciated.
llvm-svn: 111707
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index a7c3a289daf..6dcf18c3cdf 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -1299,13 +1299,13 @@ public: /// care to appropriately convert from the memory representation to /// the LLVM value representation. llvm::Value *EmitLoadOfScalar(llvm::Value *Addr, bool Volatile, - QualType Ty); + unsigned Alignment, QualType Ty); /// EmitStoreOfScalar - Store a scalar value to an address, taking /// care to appropriately convert from the memory representation to /// the LLVM value representation. void EmitStoreOfScalar(llvm::Value *Value, llvm::Value *Addr, - bool Volatile, QualType Ty); + bool Volatile, unsigned Alignment, QualType Ty); /// EmitLoadOfLValue - Given an expression that represents a value lvalue, /// this method emits the address of the lvalue, then loads the result as an |

