[llvm-commits] [llvm] r91757 - in /llvm/trunk/utils/TableGen: X86DisassemblerShared.h X86DisassemblerTables.cpp
Daniel Dunbar
daniel at zuster.org
Fri Dec 18 20:16:57 PST 2009
Author: ddunbar
Date: Fri Dec 18 22:16:57 2009
New Revision: 91757
URL: http://llvm.org/viewvc/llvm-project?rev=91757&view=rev
Log:
More bzero -> memset that I missed.
Modified:
llvm/trunk/utils/TableGen/X86DisassemblerShared.h
llvm/trunk/utils/TableGen/X86DisassemblerTables.cpp
Modified: llvm/trunk/utils/TableGen/X86DisassemblerShared.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/X86DisassemblerShared.h?rev=91757&r1=91756&r2=91757&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/X86DisassemblerShared.h (original)
+++ llvm/trunk/utils/TableGen/X86DisassemblerShared.h Fri Dec 18 22:16:57 2009
@@ -12,18 +12,18 @@
#include <string>
-#define INSTRUCTION_SPECIFIER_FIELDS \
- bool filtered; \
- InstructionContext insnContext; \
- std::string name; \
- \
- InstructionSpecifier() { \
- filtered = false; \
- insnContext = IC; \
- name = ""; \
- modifierType = MODIFIER_NONE; \
- modifierBase = 0; \
- bzero(operands, sizeof(operands)); \
+#define INSTRUCTION_SPECIFIER_FIELDS \
+ bool filtered; \
+ InstructionContext insnContext; \
+ std::string name; \
+ \
+ InstructionSpecifier() { \
+ filtered = false; \
+ insnContext = IC; \
+ name = ""; \
+ modifierType = MODIFIER_NONE; \
+ modifierBase = 0; \
+ memset(operands, 0, sizeof(operands)); \
}
#define INSTRUCTION_IDS \
Modified: llvm/trunk/utils/TableGen/X86DisassemblerTables.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/X86DisassemblerTables.cpp?rev=91757&r1=91756&r2=91757&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/X86DisassemblerTables.cpp (original)
+++ llvm/trunk/utils/TableGen/X86DisassemblerTables.cpp Fri Dec 18 22:16:57 2009
@@ -238,7 +238,7 @@
for (i = 0; i < 4; i++) {
Tables[i] = new ContextDecision;
- bzero(Tables[i], sizeof(ContextDecision));
+ memset(Tables[i], 0, sizeof(ContextDecision));
}
HasConflicts = false;
More information about the llvm-commits
mailing list