summaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-mca/Views/View.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-mca/Views/View.cpp')
-rw-r--r--llvm/tools/llvm-mca/Views/View.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/tools/llvm-mca/Views/View.cpp b/llvm/tools/llvm-mca/Views/View.cpp
new file mode 100644
index 000000000000..8e5c34d2d5c2
--- /dev/null
+++ b/llvm/tools/llvm-mca/Views/View.cpp
@@ -0,0 +1,21 @@
+//===----------------------- View.cpp ---------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+/// \file
+///
+/// This file defines the virtual anchor method in View.h to pin the vtable.
+///
+//===----------------------------------------------------------------------===//
+
+#include "Views/View.h"
+
+namespace llvm {
+namespace mca {
+
+void View::anchor() {}
+} // namespace mca
+} // namespace llvm