summaryrefslogtreecommitdiffhomepage
path: root/dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc')
-rw-r--r--dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc b/dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc
index e44f4f2..a13aa0e 100644
--- a/dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc
+++ b/dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc
@@ -172,7 +172,7 @@ CompilerKit::SyntaxLeafList::SyntaxLeaf CompilerFrontendCPlusPlusAMD64::Compile(
CompilerKit::STLString text, CompilerKit::STLString file) {
CompilerKit::SyntaxLeafList::SyntaxLeaf syntax_tree;
- if (text.length() < 1) return syntax_tree;
+ if (text.empty()) return syntax_tree;
std::size_t index = 0UL;
std::vector<std::pair<CompilerKit::CompilerKeyword, std::size_t>> keywords_list;
@@ -747,8 +747,8 @@ class AssemblyCPlusPlusInterfaceAMD64 final CK_ASSEMBLY_INTERFACE {
CompilerKit::STLString line_source;
- out_fp << "#bits 64\n";
- out_fp << "#org " << kOrigin << "\n\n";
+ out_fp << "%bits 64\n";
+ out_fp << "%org " << kOrigin << "\n\n";
while (std::getline(src_fp, line_source)) {
out_fp << kFrontend->Compile(line_source, src).fUserValue;