summaryrefslogtreecommitdiffstats
path: root/sched/src/com/android/sched/vfs/GenericInputVFile.java
diff options
context:
space:
mode:
authorBenoit Lamarche <benoitlamarche@google.com>2015-02-12 15:39:26 +0100
committerBenoit Lamarche <benoitlamarche@google.com>2015-05-29 11:49:31 +0200
commitb34fb65587616cb9da9fd30affa5bf1f49428dae (patch)
tree4bbd5ec2ebf3cce5d7a9c35589d44fbf85c8354d /sched/src/com/android/sched/vfs/GenericInputVFile.java
parent21fe55835a54f27ddb4e239d1b88907874b62feb (diff)
downloadtoolchain_jack-b34fb65587616cb9da9fd30affa5bf1f49428dae.tar.gz
toolchain_jack-b34fb65587616cb9da9fd30affa5bf1f49428dae.tar.bz2
toolchain_jack-b34fb65587616cb9da9fd30affa5bf1f49428dae.zip
Add new getPathFromRoot API in VFS
And use it to remove JayceFileImporter hack. (cherry picked from commit 7a73a0418d5524240b7c97d9801b7db954aa018c) Change-Id: I211bc52211d7373c22a02d83be114774ebca7520
Diffstat (limited to 'sched/src/com/android/sched/vfs/GenericInputVFile.java')
-rw-r--r--sched/src/com/android/sched/vfs/GenericInputVFile.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/sched/src/com/android/sched/vfs/GenericInputVFile.java b/sched/src/com/android/sched/vfs/GenericInputVFile.java
index b203dbca..74ea3aa3 100644
--- a/sched/src/com/android/sched/vfs/GenericInputVFile.java
+++ b/sched/src/com/android/sched/vfs/GenericInputVFile.java
@@ -68,4 +68,15 @@ public class GenericInputVFile implements InputVFile {
public String getDigest() {
return file.getDigest();
}
+
+ @Override
+ @Nonnull
+ public VPath getPathFromRoot() {
+ return file.getPathFromRoot();
+ }
+
+ @Nonnull
+ VFile getVFile() {
+ return file;
+ }
} \ No newline at end of file