[libcxxabi] r206427 - Replace bzero with memset
Jonathan Roelofs
jonathan at codesourcery.com
Wed Apr 16 16:26:56 PDT 2014
Author: jroelofs
Date: Wed Apr 16 18:26:55 2014
New Revision: 206427
URL: http://llvm.org/viewvc/llvm-project?rev=206427&view=rev
Log:
Replace bzero with memset
... so that we can use newlib as the c library.
Modified:
libcxxabi/trunk/src/Unwind/Registers.hpp
Modified: libcxxabi/trunk/src/Unwind/Registers.hpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/Unwind/Registers.hpp?rev=206427&r1=206426&r2=206427&view=diff
==============================================================================
--- libcxxabi/trunk/src/Unwind/Registers.hpp (original)
+++ libcxxabi/trunk/src/Unwind/Registers.hpp Wed Apr 16 18:26:55 2014
@@ -15,6 +15,7 @@
#include <stdint.h>
#include <strings.h>
+#include <string.h>
#include "libunwind.h"
#include "config.h"
@@ -91,7 +92,7 @@ inline Registers_x86::Registers_x86(cons
}
inline Registers_x86::Registers_x86() {
- bzero(&_registers, sizeof(_registers));
+ memset(&_registers, 0, sizeof(_registers));
}
inline bool Registers_x86::validRegister(int regNum) const {
@@ -282,7 +283,7 @@ inline Registers_x86_64::Registers_x86_6
}
inline Registers_x86_64::Registers_x86_64() {
- bzero(&_registers, sizeof(_registers));
+ memset(&_registers, 0, sizeof(_registers));
}
inline bool Registers_x86_64::validRegister(int regNum) const {
@@ -548,9 +549,9 @@ inline Registers_ppc::Registers_ppc(cons
}
inline Registers_ppc::Registers_ppc() {
- bzero(&_registers, sizeof(_registers));
- bzero(&_floatRegisters, sizeof(_floatRegisters));
- bzero(&_vectorRegisters, sizeof(_vectorRegisters));
+ memset(&_registers, 0, sizeof(_registers));
+ memset(&_floatRegisters, 0, sizeof(_floatRegisters));
+ memset(&_vectorRegisters, 0, sizeof(_vectorRegisters));
}
inline bool Registers_ppc::validRegister(int regNum) const {
@@ -1065,8 +1066,8 @@ inline Registers_arm64::Registers_arm64(
}
inline Registers_arm64::Registers_arm64() {
- bzero(&_registers, sizeof(_registers));
- bzero(&_vectorHalfRegisters, sizeof(_vectorHalfRegisters));
+ memset(&_registers, 0, sizeof(_registers));
+ memset(&_vectorHalfRegisters, 0, sizeof(_vectorHalfRegisters));
}
inline bool Registers_arm64::validRegister(int regNum) const {
@@ -1329,7 +1330,7 @@ inline Registers_arm::Registers_arm(cons
}
inline Registers_arm::Registers_arm() {
- bzero(&_registers, sizeof(_registers));
+ memset(&_registers, 0, sizeof(_registers));
}
inline bool Registers_arm::validRegister(int regNum) const {
More information about the cfe-commits
mailing list