summaryrefslogtreecommitdiff
path: root/src/context.cc
blob: 1c001d60f9eebbc023123d45fe6464fec2b848d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2011 Google Inc. All Rights Reserved.

#include "context.h"

#include "context_arm.h"
#include "context_x86.h"

namespace art {

Context* Context::Create() {
#if defined(__arm__)
  return new arm::ArmContext();
#else
  return new x86::X86Context();
#endif
}

}  // namespace art