aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-12-19 04:16:57 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-12-19 04:16:57 +0000
commit8783087f69989b2350c158890b26952977d8e437 (patch)
tree0ed12876890fd97732ec65ae8a5fe71a5b4da0f5 /utils
parent9e6d1d1f5034347d237941f1bf08fba5c1583cd3 (diff)
downloadexternal_llvm-8783087f69989b2350c158890b26952977d8e437.zip
external_llvm-8783087f69989b2350c158890b26952977d8e437.tar.gz
external_llvm-8783087f69989b2350c158890b26952977d8e437.tar.bz2
More bzero -> memset that I missed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91757 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/X86DisassemblerShared.h24
-rw-r--r--utils/TableGen/X86DisassemblerTables.cpp2
2 files changed, 13 insertions, 13 deletions
diff --git a/utils/TableGen/X86DisassemblerShared.h b/utils/TableGen/X86DisassemblerShared.h
index 9003cbf..7fcd122 100644
--- a/utils/TableGen/X86DisassemblerShared.h
+++ b/utils/TableGen/X86DisassemblerShared.h
@@ -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 \
diff --git a/utils/TableGen/X86DisassemblerTables.cpp b/utils/TableGen/X86DisassemblerTables.cpp
index 83284a7..87e877a 100644
--- a/utils/TableGen/X86DisassemblerTables.cpp
+++ b/utils/TableGen/X86DisassemblerTables.cpp
@@ -238,7 +238,7 @@ DisassemblerTables::DisassemblerTables() {
for (i = 0; i < 4; i++) {
Tables[i] = new ContextDecision;
- bzero(Tables[i], sizeof(ContextDecision));
+ memset(Tables[i], 0, sizeof(ContextDecision));
}
HasConflicts = false;