blob: 11b68bc89bd0ed286ed27e3576c0075c3f849c2f [file] [log] [blame]
//===------- LockedMap.cpp - Implementation of the UTF8 map ---------------===//
//
// JnJVM
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include <map>
#include "JavaArray.h"
#include "JavaClass.h"
#include "JavaString.h"
#include "JavaTypes.h"
#include "LockedMap.h"
#include "Zip.h"
#include <cstring>
using namespace jnjvm;
void StringMap::insert(JavaString* str) {
llvm_gcroot(str, 0);
map.insert(std::make_pair(str->value, str));
}