aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-11-24 19:32:42 +0800
committerchriseth <c@ethdev.com>2016-12-01 23:03:59 +0800
commit1e35526eb6a7c5af074170f6291491d3cb0bd6ba (patch)
tree41c8a1688197c6b3109e7345b8ca9a520f8eecac /libsolidity
parentaa1fd6a879eaedc5c4df2951c06e9dc3eb6eaeb4 (diff)
downloaddexon-solidity-1e35526eb6a7c5af074170f6291491d3cb0bd6ba.tar
dexon-solidity-1e35526eb6a7c5af074170f6291491d3cb0bd6ba.tar.gz
dexon-solidity-1e35526eb6a7c5af074170f6291491d3cb0bd6ba.tar.bz2
dexon-solidity-1e35526eb6a7c5af074170f6291491d3cb0bd6ba.tar.lz
dexon-solidity-1e35526eb6a7c5af074170f6291491d3cb0bd6ba.tar.xz
dexon-solidity-1e35526eb6a7c5af074170f6291491d3cb0bd6ba.tar.zst
dexon-solidity-1e35526eb6a7c5af074170f6291491d3cb0bd6ba.zip
Fix tests.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/codegen/CompilerContext.cpp7
-rw-r--r--libsolidity/codegen/CompilerContext.h3
2 files changed, 0 insertions, 10 deletions
diff --git a/libsolidity/codegen/CompilerContext.cpp b/libsolidity/codegen/CompilerContext.cpp
index b99b0548..2de5a3ec 100644
--- a/libsolidity/codegen/CompilerContext.cpp
+++ b/libsolidity/codegen/CompilerContext.cpp
@@ -220,13 +220,6 @@ void CompilerContext::appendInlineAssembly(
solAssert(assembly::InlineAssemblyStack().parseAndAssemble(*assembly, *m_asm, identifierAccess), "");
}
-void CompilerContext::injectVersionStampIntoSub(size_t _subIndex)
-{
- eth::Assembly& sub = m_asm->sub(_subIndex);
- sub.injectStart(Instruction::POP);
- sub.injectStart(fromBigEndian<u256>(binaryVersion()));
-}
-
FunctionDefinition const& CompilerContext::resolveVirtualFunction(
FunctionDefinition const& _function,
vector<ContractDefinition const*>::const_iterator _searchStart
diff --git a/libsolidity/codegen/CompilerContext.h b/libsolidity/codegen/CompilerContext.h
index 8fdb3e03..80671528 100644
--- a/libsolidity/codegen/CompilerContext.h
+++ b/libsolidity/codegen/CompilerContext.h
@@ -152,9 +152,6 @@ public:
std::map<std::string, std::string> const& _replacements = std::map<std::string, std::string>{}
);
- /// Prepends "PUSH <compiler version number> POP"
- void injectVersionStampIntoSub(size_t _subIndex);
-
/// Appends arbitrary data to the end of the bytecode.
void appendAuxiliaryData(bytes const& _data) { m_asm->appendAuxiliaryDataToEnd(_data); }